From: Evan Prodromou Date: Tue, 30 Nov 2010 15:27:32 +0000 (-0500) Subject: a quick script to flush the router from cache if needed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0cc332eab634bc069c36e45910c5e5108c8a5410;p=quix0rs-gnu-social.git a quick script to flush the router from cache if needed --- 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