dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MessageCache: derive the hash from the cache contents
[lhc/web/wiklou.git]
/
includes
/
cache
/
MessageCache.php
diff --git
a/includes/cache/MessageCache.php
b/includes/cache/MessageCache.php
index
304c4f2
..
3f60d8c
100644
(file)
--- a/
includes/cache/MessageCache.php
+++ b/
includes/cache/MessageCache.php
@@
-530,7
+530,8
@@
class MessageCache {
}
$cache['VERSION'] = MSG_CACHE_VERSION;
- $cache['HASH'] = wfRandomString( 8 );
+ ksort( $cache );
+ $cache['HASH'] = md5( serialize( $cache ) );
$cache['EXPIRY'] = wfTimestamp( TS_MW, time() + $this->mExpiry );
return $cache;