Robert Vogel has uploaded a new change for review. https://gerrit.wikimedia.org/r/201185
Change subject: Invalidate cache on changes in BLOG_TALK ...................................................................... Invalidate cache on changes in BLOG_TALK Change-Id: Iac4c4b0f8a7645f20ea0daaa5ba77374eccd1897 (cherry picked from commit d7891cf1a7e8f9275487b2f42c435fcd9000da56) --- M Blog/Blog.class.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/85/201185/1 diff --git a/Blog/Blog.class.php b/Blog/Blog.class.php index 746ac84..d2c4975 100644 --- a/Blog/Blog.class.php +++ b/Blog/Blog.class.php @@ -211,7 +211,8 @@ */ public function onPageContentSaveComplete( $article, $user, $content, $summary, $isMinor, $isWatch, $section, $flags, $revision, $status, $baseRevId ) { - if ( $article->getTitle()->getNamespace() !== NS_BLOG ) return true; + # TODO: Cache must also be invalidated on other occasions like blog tags for subpages or categories. + if ( !in_array( $article->getTitle()->getNamespace(), array( NS_BLOG, NS_BLOG_TALK) ) ) return true; $sTagsKey = BsCacheHelper::getCacheKey( 'BlueSpice', 'Blog', 'Tags' ); $aTagsData = BsCacheHelper::get( $sTagsKey ); -- To view, visit https://gerrit.wikimedia.org/r/201185 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Iac4c4b0f8a7645f20ea0daaa5ba77374eccd1897 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: REL1_23 Gerrit-Owner: Robert Vogel <vo...@hallowelt.biz> Gerrit-Reviewer: Pigpen <reym...@hallowelt.biz> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits