Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_Store.php |
— | — | @@ -229,15 +229,10 @@ |
230 | 230 | if ( $smwgAutoRefreshSubject && !wfReadOnly() ) { |
231 | 231 | $title = $data->getSubject()->getTitle(); |
232 | 232 | $dbw = wfGetDB( DB_MASTER ); |
233 | | - $ts = $dbw->timestamp(); |
234 | 233 | |
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 | | - |
239 | 234 | $dbw->update( |
240 | 235 | 'page', |
241 | | - array( 'page_touched' => $ts ), |
| 236 | + array( 'page_touched' => $dbw->timestamp( time() + 9001 ) ), |
242 | 237 | $title->pageCond(), |
243 | 238 | __METHOD__ |
244 | 239 | ); |