]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use Cache::codeKey() in Router class
authorEvan Prodromou <evan@status.net>
Mon, 6 Dec 2010 22:08:52 +0000 (17:08 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 6 Dec 2010 22:08:52 +0000 (17:08 -0500)
lib/router.php

index 8670519ff47691090f2ace30ea027e9aca2748f4..4b1fdeb92c6f0c5ec220cf597583b7c12a1d83ee 100644 (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()