From 8c993a502c69ae7d3de95938211fbfcda2290a99 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 30 Nov 2010 10:11:39 -0500 Subject: [PATCH] use a CRC32 of the plugin names rather than actual names --- lib/router.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. - return Cache::key('router:'.STATUSNET_VERSION.':'.implode(',', $names)); + $uniq = crc32(implode(',', $names)); + + return Cache::key('router:'.STATUSNET_VERSION.':'.$uniq); } function initialize()