From: Evan Prodromou Date: Tue, 30 Nov 2010 15:11:39 +0000 (-0500) Subject: use a CRC32 of the plugin names rather than actual names X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8c993a502c69ae7d3de95938211fbfcda2290a99;p=quix0rs-gnu-social.git use a CRC32 of the plugin names rather than actual names --- diff --git a/lib/router.php b/lib/router.php index 570c7aa28f..9640ec1e04 100644 --- a/lib/router.php +++ b/lib/router.php @@ -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()