Daniel Kinzler has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/398885 )
Change subject: Fix cache key cleared by populateContentModel.php
......................................................................
Fix cache key cleared by populateContentModel.php
This is a follow-up to I4f24e7fbb6.
Change-Id: I65858cecb5aa779c4893b0d0f575a996f852870e
---
M maintenance/populateContentModel.php
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/85/398885/1
diff --git a/maintenance/populateContentModel.php
b/maintenance/populateContentModel.php
index a4fac05..70cb91e 100644
--- a/maintenance/populateContentModel.php
+++ b/maintenance/populateContentModel.php
@@ -70,8 +70,10 @@
protected function clearCache( $page_id, $rev_id ) {
$contentModelKey = $this->wanCache->makeKey(
'page-content-model', $rev_id );
+
+ // NOTE: Cache key is defined by
RevisionStore::getKnownCurrentRevision().
$revisionKey =
- $this->wanCache->makeGlobalKey( 'revision',
$this->wikiId, $page_id, $rev_id );
+ $this->wanCache->makeGlobalKey( 'revision-row-1.29',
$this->wikiId, $page_id, $rev_id );
// WikiPage content model cache
$this->wanCache->delete( $contentModelKey );
--
To view, visit https://gerrit.wikimedia.org/r/398885
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I65858cecb5aa779c4893b0d0f575a996f852870e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Daniel Kinzler <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits