r40005 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r40004‎ | r40005 | r40006 >
Date:05:07, 26 August 2008
Author:aaron
Status:old
Tags:
Comment:
pre-set cache key
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
@@ -1115,6 +1115,11 @@
11161116 # Update page fields
11171117 self::updateArticleOn( $article, $rev->getId(), $rev->getId() );
11181118 }
 1119+ # We can set the sync cache key already.
 1120+ global $wgMemc, $wgParserCacheExpireTime;
 1121+ $key = wfMemcKey( 'flaggedrevs', 'includesSynced', $article->getId() );
 1122+ $data = FlaggedRevs::makeMemcObj( "true" );
 1123+ $wgMemc->set( $key, $data, $wgParserCacheExpireTime );
11191124 # Done!
11201125 $dbw->commit();
11211126

Status & tagging log