Fix ticket #2929: router cache now clears itself when switching singleuser mode in and out
This commit is contained in:
parent
ba2b670bfb
commit
ed24c95ac2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user