From a33d1d6090557772465fbc401afb123a44f3925d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 6 Dec 2010 17:08:52 -0500 Subject: [PATCH] use Cache::codeKey() in Router class --- lib/router.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/router.php b/lib/router.php index 7272a96904..8d2fbf6cd2 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() -- 2.39.5