Commit 247cd74b authored by Robert Nix's avatar Robert Nix
Browse files

Merge branch 'patch-1' into 'master'

Use different cache for the same page on different wikis

Closes #157

See merge request !132
parents e866698d 0d3dfd65
Pipeline #92344364 passed with stage
in 1 minute and 51 seconds
......@@ -845,7 +845,7 @@ class Hooks {
$redis = RedisCache::getClient('cache');
$cacheKey = 'ReverbWatchlist:edited:' . md5($title->getFullText());
$cacheKey = 'ReverbWatchlist:edited:' . md5($title->getFullURL());
$metas = (array)$redis->sMembers($cacheKey);
// If the cache is bad or something else goes wrong let MediaWiki handle it.
......@@ -954,7 +954,7 @@ class Hooks {
// rc_last_oldid - ID of the old revision.
// rc_this_oldid - ID of the new revision.
$redis = RedisCache::getClient('cache');
$cacheKey = 'ReverbWatchlist:edited:' . md5($title->getFullText());
$cacheKey = 'ReverbWatchlist:edited:' . md5($title->getFullURL());
$redis->sAdd(
$cacheKey,
json_encode(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment