diff --git a/scripts/flushrouter.php b/scripts/flushrouter.php new file mode 100644 index 0000000000..79493eae49 --- /dev/null +++ b/scripts/flushrouter.php @@ -0,0 +1,33 @@ +#!/usr/bin/env php +. + */ + +define('INSTALLDIR', realpath(dirname(__FILE__) . '/..')); + +$helptext = << +Flush the url router from cache. + +END_OF_FLUSHROUTER_HELP; + +require_once INSTALLDIR.'/scripts/commandline.inc'; + +Cache::delete(Router::cacheKey()); + +print "OK.\n"; \ No newline at end of file