forked from GNUsocial/gnu-social
use Cache::codeKey() in Router class
This commit is contained in:
parent
b3d47ed6cc
commit
8c4e14b59c
@ -156,21 +156,7 @@ class Router
|
|||||||
|
|
||||||
static function cacheKey()
|
static function cacheKey()
|
||||||
{
|
{
|
||||||
$plugins = StatusNet::getActivePlugins();
|
return Cache::codeKey('router');
|
||||||
$names = array();
|
|
||||||
|
|
||||||
foreach ($plugins as $plugin) {
|
|
||||||
$names[] = $plugin[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
$names = array_unique($names);
|
|
||||||
asort($names);
|
|
||||||
|
|
||||||
// Unique enough.
|
|
||||||
|
|
||||||
$uniq = crc32(implode(',', $names));
|
|
||||||
|
|
||||||
return Cache::key('router:'.STATUSNET_VERSION.':'.$uniq);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function initialize()
|
function initialize()
|
||||||
|
Loading…
Reference in New Issue
Block a user