r32390 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32389‎ | r32390 | r32391 >
Date:00:14, 25 March 2008
Author:brion
Status:old
Tags:
Comment:
* (bug 344) Purge cache for talk/article pages when deleting the other tab
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2985,6 +2985,15 @@
29862986 static function onArticleDelete( $title ) {
29872987 global $wgUseFileCache, $wgMessageCache;
29882988
 2989+ // Update existence markers on article/talk tabs...
 2990+ if( $title->isTalkPage() ) {
 2991+ $other = $title->getSubjectPage();
 2992+ } else {
 2993+ $other = $title->getTalkPage();
 2994+ }
 2995+ $other->invalidateCache();
 2996+ $other->purgeSquid();
 2997+
29892998 $title->touchLinks();
29902999 $title->purgeSquid();
29913000
Index: trunk/phase3/RELEASE-NOTES
@@ -129,6 +129,7 @@
130130 * (bug 1600) Strip extra == section markup == in new-comment field
131131 * (bug 11325) Wrapped page titles in MonoBook skin spaced more nicely
132132 * (bug 12077) Fix HTML nesting for TOC
 133+* (bug 344) Purge cache for talk/article pages when deleting the other tab
133134
134135
135136 === API changes in 1.13 ===

Status & tagging log