Page MenuHomeIn-Portal Phabricator

in-portal
No OneTemporary

File Metadata

Created
Tue, Feb 25, 6:09 AM

in-portal

Index: branches/5.2.x/tools/clear_cache.sh
===================================================================
--- branches/5.2.x/tools/clear_cache.sh (revision 15708)
+++ branches/5.2.x/tools/clear_cache.sh (revision 15709)
@@ -1,2 +1,5 @@
-cd ../system/cache/; find ./ -maxdepth 1 -not -name "CVS" -not -name ".svn" -not -name ".htaccess" -type d -o -name "debug_*" | xargs rm -Rf
-cd ../.restricted/; rm debug_*.txt -Rf
+#!/bin/sh
+FULL_PATH=`cd $(dirname $0)/..; pwd`
+
+find "$FULL_PATH"/system/cache -mindepth 1 -maxdepth 1 -not -name "CVS" -not -name ".svn" -print0 | xargs -0 rm -Rf
+rm -Rf "$FULL_PATH"/system/.restricted/debug_*.txt

Event Timeline