r92837 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92836‎ | r92837 | r92838 >
Date:01:06, 22 July 2011
Author:werdna
Status:ok
Tags:
Comment:
Purge cache when a new value is assigned
Modified paths:
  • /trunk/extensions/EditPageTracking/EditPageTracking.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EditPageTracking/EditPageTracking.php
@@ -75,6 +75,9 @@
7676
7777 $wgUser->mFirstEditPage = $timestamp;
7878
 79+ $cacheKey = wfMemcKey( 'first-edit-page', $wgUser->getId() );
 80+ $wgMemc->set($cacheKey, $timestamp, 86400);
 81+
7982 return true;
8083 }
8184

Status & tagging log