diff options
author | Evan Prodromou <evan@status.net> | 2010-12-06 17:08:52 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-12-06 17:08:52 -0500 |
commit | 8c4e14b59c649ff38159793a1e30229bcc4bf4d6 (patch) | |
tree | 8941621c92f1619e34cf6fc38d4b087fda97f50f | |
parent | b3d47ed6cc3245ddf2f54343b4783fde05708c00 (diff) |
use Cache::codeKey() in Router class
-rw-r--r-- | lib/router.php | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/router.php b/lib/router.php index 8670519ff..4b1fdeb92 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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() |