jenkins-bot has submitted this change and it was merged.

Change subject: Propagate summary edits into history cache
......................................................................


Propagate summary edits into history cache

Summary edits would show up when cache is stale & data is loaded from DB.
However, a summary edit should propagate into cache as soon as it happened.
That didn't happen because that listener (even though it already had the
code to support summaries) wasn't wired up to execute after inserting a
summary.

Also bumped the history cache version, so we don't re-use old (incorrect)
caches.

Bug: T90260
Change-Id: Icf8552db5c0ded84e350489025d40efc1ae50e56
---
M container.php
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Sbisson: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/container.php b/container.php
index 25ded22..7da93a8 100644
--- a/container.php
+++ b/container.php
@@ -442,7 +442,8 @@
 $c['storage.post_summary.indexes'] = function( $c ) {
        return array(
                $c['storage.post_summary.indexes.primary'],
-               $c['storage.post_summary.indexes.topic_lookup']
+               $c['storage.post_summary.indexes.topic_lookup'],
+               $c['storage.topic_history.indexes.topic_lookup']
        );
 };
 $c['storage.post_summary'] = function( $c ) {
@@ -656,7 +657,7 @@
                $c['memcache.buffered'],
                $c['storage.topic_history.backend'],
                $c['repository.tree'],
-               'flow_revision:topic',
+               'flow_revision:topic:v2',
                array( 'topic_root_id' ),
                array(
                        'limit' => 500,

-- 
To view, visit https://gerrit.wikimedia.org/r/220451
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icf8552db5c0ded84e350489025d40efc1ae50e56
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Matthias Mullie <mmul...@wikimedia.org>
Gerrit-Reviewer: Sbisson <sbis...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to