]> 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:53 +0000 (10:11 -0500)
lib/router.php

index 3ea93b7081ece458e640ec8c55f468144fd3f2cb..1cd66ca79d0f7aed8115a9b5c06ad59639759cc5 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()