summaryrefslogtreecommitdiff
path: root/lib/router.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-11-30 10:11:39 -0500
committerEvan Prodromou <evan@status.net>2010-11-30 10:11:39 -0500
commit8c993a502c69ae7d3de95938211fbfcda2290a99 (patch)
tree2a219f0441c063d20b69ece5f75ec43ef0fa6867 /lib/router.php
parent02da858cef04ecfde20e0952a8e6049efc56edb6 (diff)
use a CRC32 of the plugin names rather than actual names
Diffstat (limited to 'lib/router.php')
-rw-r--r--lib/router.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/router.php b/lib/router.php
index 570c7aa28..9640ec1e0 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()