r46907 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46906‎ | r46907 | r46908 >
Date:10:33, 6 February 2009
Author:aaron
Status:deferred
Tags:
Comment:
delete inconsistent sync cache keys
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticle.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php
@@ -1027,10 +1027,11 @@
10281028 $changeList += $imgChanges;
10291029
10301030 # Some important information...
1031 - if( !empty($changeList) ) {
 1031+ $notice = '';
 1032+ if( count($changeList) > 0 ) {
10321033 $notice = '<br/>' . wfMsgExt('revreview-update-use', array('parseinline'));
1033 - } else {
1034 - $notice = "";
 1034+ } else if( !$synced ) {
 1035+ $wgMemc->delete($key); // bad key, said they were not synced
10351036 }
10361037
10371038 # If the user is allowed to review, prompt them!

Follow-up revisions

RevisionCommit summaryAuthorDate
r47015Follow up to r46907: invalidate the cache, since the sync key uses itaaron17:23, 8 February 2009

Status & tagging log