Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
HydraWiki
Extensions
Reverb
Commits
0d3dfd65
Commit
0d3dfd65
authored
Oct 29, 2019
by
pcj
Committed by
Robert Nix
Oct 29, 2019
Browse files
Use different cache for the same page on different wikis
parent
e866698d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
includes/Hooks.php
includes/Hooks.php
+2
-2
No files found.
includes/Hooks.php
View file @
0d3dfd65
...
...
@@ -845,7 +845,7 @@ class Hooks {
$redis
=
RedisCache
::
getClient
(
'cache'
);
$cacheKey
=
'ReverbWatchlist:edited:'
.
md5
(
$title
->
getFull
Text
());
$cacheKey
=
'ReverbWatchlist:edited:'
.
md5
(
$title
->
getFull
URL
());
$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
->
getFull
Text
());
$cacheKey
=
'ReverbWatchlist:edited:'
.
md5
(
$title
->
getFull
URL
());
$redis
->
sAdd
(
$cacheKey
,
json_encode
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment