From c86dff990196f0a9a5cd2eb5a7183c39ea851446 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 30 Nov 2010 10:11:39 -0500 Subject: use a CRC32 of the plugin names rather than actual names --- lib/router.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/router.php b/lib/router.php index 3ea93b708..1cd66ca79 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() -- cgit v1.2.3