]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use a CRC32 of the plugin names rather than actual names
authorEvan Prodromou <evan@status.net>
Tue, 30 Nov 2010 15:11:39 +0000 (10:11 -0500)
committerEvan Prodromou <evan@status.net>
Tue, 30 Nov 2010 15:11:39 +0000 (10:11 -0500)
lib/router.php

index 570c7aa28f99e0abf1e370e245ec1324559b577c..9640ec1e042afacd47d4be1277306e8201fed758 100644 (file)
@@ -164,8 +164,12 @@ class Router
 
        $names = array_unique($names);
        asort($names);
+
+       // Unique enough.
+       
+       $uniq = crc32(implode(',', $names));
        
-        return Cache::key('router:'.STATUSNET_VERSION.':'.implode(',', $names));
+        return Cache::key('router:'.STATUSNET_VERSION.':'.$uniq);
     }
     
     function initialize()