From: Brion Vibber Date: Thu, 16 Dec 2010 21:42:10 +0000 (-0800) Subject: Fix ticket #2929: router cache now clears itself when switching singleuser mode in... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ed24c95ac28bce8cd30c94c03f93b28dc26d2d96;p=quix0rs-gnu-social.git Fix ticket #2929: router cache now clears itself when switching singleuser mode in and out --- diff --git a/lib/router.php b/lib/router.php index 24cda72b61..b8a9db223f 100644 --- a/lib/router.php +++ b/lib/router.php @@ -160,7 +160,16 @@ class Router static function cacheKey() { - return Cache::codeKey('router'); + $parts = array('router'); + + // Many router paths depend on this setting. + if (common_config('singleuser', 'enabled')) { + $parts[] = '1user'; + } else { + $parts[] = 'multi'; + } + + return Cache::codeKey(implode(':', $parts)); } function initialize()