summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/router.php b/lib/router.php
index 24cda72b6..b8a9db223 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()