r52455 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52454‎ | r52455 | r52456 >
Date:13:05, 26 June 2009
Author:werdna
Status:deferred
Tags:
Comment:
Make sure we touch the talk page whenever a thread is created or updated.
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/LqtThread.php (modified) (history)
  • /trunk/extensions/LiquidThreads/classes/LqtThreads.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/LqtThreads.php
@@ -110,6 +110,9 @@
111111 self::createTalkpageIfNeeded( $article );
112112
113113 NewMessages::writeMessageStateForUpdatedThread( $newthread, $change_type, $wgUser );
 114+
 115+ // Touch the article
 116+ $article->getTitle()->invalidateCache();
114117
115118 return $newthread;
116119 }
Index: trunk/extensions/LiquidThreads/classes/LqtThread.php
@@ -173,6 +173,8 @@
174174
175175 // Touch the root
176176 $this->root()->getTitle()->invalidateCache();
 177+ // Touch the talk page, too.
 178+ $this->article()->getTitle()->invalidateCache();
177179
178180 if ( $change_type == Threads::CHANGE_EDITED_ROOT ) {
179181 NewMessages::writeMessageStateForUpdatedThread( $this, $change_type, $wgUser );

Status & tagging log