From: Brion Vibber Date: Tue, 25 Mar 2008 00:14:32 +0000 (+0000) Subject: * (bug 344) Purge cache for talk/article pages when deleting the other tab X-Git-Tag: 1.31.0-rc.0~48836 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=10df38b3072fb6f15107ed03455e350506f29a0e;p=lhc%2Fweb%2Fwiklou.git * (bug 344) Purge cache for talk/article pages when deleting the other tab --- 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();