From 10df38b3072fb6f15107ed03455e350506f29a0e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 25 Mar 2008 00:14:32 +0000 Subject: [PATCH] * (bug 344) Purge cache for talk/article pages when deleting the other tab --- RELEASE-NOTES | 1 + includes/Article.php | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index cb671fcd3b..c78bef898a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -129,6 +129,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 1600) Strip extra == section markup == in new-comment field * (bug 11325) Wrapped page titles in MonoBook skin spaced more nicely * (bug 12077) Fix HTML nesting for TOC +* (bug 344) Purge cache for talk/article pages when deleting the other tab === API changes in 1.13 === diff --git a/includes/Article.php b/includes/Article.php index 26b64944fd..87bab25e78 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -2985,6 +2985,15 @@ class Article { static function onArticleDelete( $title ) { global $wgUseFileCache, $wgMessageCache; + // Update existence markers on article/talk tabs... + if( $title->isTalkPage() ) { + $other = $title->getSubjectPage(); + } else { + $other = $title->getTalkPage(); + } + $other->invalidateCache(); + $other->purgeSquid(); + $title->touchLinks(); $title->purgeSquid(); -- 2.20.1