MediaWiki r10959 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r10958‎ | r10959 (on ViewVC)‎ | r10960 >
Date:21:11, 9 September 2005
Author:avar
Status:old
Tags:
Comment:
* Set the memcache expiry time to a week instead of infinite
* Run $this->purgeCache(); on action=purge
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/Image.php
@@ -195,7 +195,7 @@
196196 'metadata' => $this->metadata,
197197 'size' => $this->size );
198198
199 - $wgMemc->set( $keys[0], $cachedValues );
 199+ $wgMemc->set( $keys[0], $cachedValues, 60 * 60 * 24 * 7 ); // A week
200200 } else {
201201 // However we should clear them, so they aren't leftover
202202 // if we've deleted the file.
@@ -1450,6 +1450,7 @@
14511451 $newver = Exif::version();
14521452
14531453 if ( !count( $ret ) || $purge || $oldver != $newver ) {
 1454+ $this->purgeCache();
14541455 $this->updateExifData( $newver );
14551456 }
14561457 if ( isset( $ret['MEDIAWIKI_EXIF_VERSION'] ) )

Status & tagging log

  • 01:58, 13 October 2010 ^demon (Talk | contribs) changed the status of r10959 [removed: new added: old]
Personal tools
Namespaces

Variants
Views
Actions
Navigation
Support
Download
Development
Communication
Toolbox