use Cache::codeKey() in Router class

This commit is contained in:
Evan Prodromou 2010-12-06 17:08:52 -05:00
parent b3d47ed6cc
commit 8c4e14b59c

View File

@ -156,21 +156,7 @@ class Router
static function cacheKey()
{
$plugins = StatusNet::getActivePlugins();
$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);
return Cache::codeKey('router');
}
function initialize()