From 0cc332eab634bc069c36e45910c5e5108c8a5410 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 30 Nov 2010 10:27:32 -0500 Subject: [PATCH] a quick script to flush the router from cache if needed --- scripts/flushrouter.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 scripts/flushrouter.php 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 -- 2.39.5