r85736 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85735‎ | r85736 | r85737 >
Date:20:11, 9 April 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
implemented better fix suggested at bug 27765
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_Store.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_Store.php
@@ -229,15 +229,10 @@
230230 if ( $smwgAutoRefreshSubject && !wfReadOnly() ) {
231231 $title = $data->getSubject()->getTitle();
232232 $dbw = wfGetDB( DB_MASTER );
233 - $ts = $dbw->timestamp();
234233
235 - if ( $wgDBtype == 'mysql' ) {
236 - $ts += 9001; // This is a hack to invalidate the page cache after the save completes, so it re-renders.
237 - }
238 -
239234 $dbw->update(
240235 'page',
241 - array( 'page_touched' => $ts ),
 236+ array( 'page_touched' => $dbw->timestamp( time() + 9001 ) ),
242237 $title->pageCond(),
243238 __METHOD__
244239 );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r85642address bug 27765jeroendedauw21:36, 7 April 2011

Status & tagging log