From: Evan Prodromou Date: Mon, 6 Dec 2010 22:08:52 +0000 (-0500) Subject: use Cache::codeKey() in Router class X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8c4e14b59c649ff38159793a1e30229bcc4bf4d6;p=quix0rs-gnu-social.git use Cache::codeKey() in Router class --- diff --git a/lib/router.php b/lib/router.php index 8670519ff4..4b1fdeb92c 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()