diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-12 11:27:54 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-07-12 11:27:54 +0000 |
commit | 4f3bce79bfb5851cef9e7bc655c91bb3093cc401 (patch) | |
tree | 10a0991fddeb0e075d7fa46e2b40e5dbc64d1e88 /wp-inst/maintenance.php | |
download | wordpress-mu-4f3bce79bfb5851cef9e7bc655c91bb3093cc401.tar.gz wordpress-mu-4f3bce79bfb5851cef9e7bc655c91bb3093cc401.tar.xz wordpress-mu-4f3bce79bfb5851cef9e7bc655c91bb3093cc401.zip |
Initial Import
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/maintenance.php')
-rw-r--r-- | wp-inst/maintenance.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/wp-inst/maintenance.php b/wp-inst/maintenance.php new file mode 100644 index 0000000..faef3f7 --- /dev/null +++ b/wp-inst/maintenance.php @@ -0,0 +1,29 @@ +<?php +/* +Call this file in a secure manner. You could set up a cron job to do it: +0 2,7,12,16,20 * * * (/usr/bin/lynx --dump http://localhost/maintenance.php) 2> /dev/null + +You don't want others deleting your cache! +*/ +die( 'You must delete line 2 of '.$_SERVER[ 'PHP_SELF' ].' for it to work!' ); // delete this line when you've secured this file. + +if( $_SERVER[ 'REMOTE_ADDR' ] == '127.0.0.1' ) +{ + exec( "rm -f ./wp-content/smarty-cache/function_cache/*0" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*1" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*2" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*3" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*4" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*5" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*6" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*7" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*8" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*9" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*a" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*b" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*c" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*d" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*e" ); + exec( "rm -f ./wp-content/smarty-cache/function_cache/*f" ); +} +?> |