From c86dff990196f0a9a5cd2eb5a7183c39ea851446 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 3ea93b7081..1cd66ca79d 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()