r72992 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r72991‎ | r72992 | r72993 >
Date:16:49, 14 September 2010
Author:kaldari
Status:ok
Tags:
Comment:
fixing memc call for set methods per comment at r72611
Modified paths:
  • /trunk/extensions/CentralNotice/SpecialBannerLoader.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/SpecialBannerLoader.php
@@ -162,8 +162,8 @@
163163 return 1100000; // Update as needed during fundraiser
164164 }
165165 }
166 - $wgMemc->set( 'centralnotice:counter', $count, 60 ); // Expire in 60 seconds
167 - $wgMemc->set( 'centralnotice:counter:fallback', $count ); // No expiration
 166+ $wgMemc->set( wfMemcKey( 'centralnotice', 'counter' ), $count, 60 ); // Expire in 60 seconds
 167+ $wgMemc->set( wfMemcKey( 'centralnotice', 'counter', 'fallback' ), $count ); // No expiration
168168 }
169169 return $count;
170170 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r72611fixing html comments and wfMemc per comments at r72177kaldari21:41, 8 September 2010

Status & tagging log