* (bug 344) Purge cache for talk/article pages when deleting the other tab
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 25 Mar 2008 00:14:32 +0000 (00:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 25 Mar 2008 00:14:32 +0000 (00:14 +0000)
RELEASE-NOTES
includes/Article.php

index cb671fc..c78bef8 100644 (file)
@@ -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 ===
index 26b6494..87bab25 100644 (file)
@@ -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();