r82355 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82354‎ | r82355 | r82356 >
Date:22:14, 17 February 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: MFT r82354
Modified paths:
  • /branches/wmf/1.17wmf1/includes/resourceloader/ResourceLoader.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/includes/resourceloader/ResourceLoader.php
@@ -29,6 +29,7 @@
3030 class ResourceLoader {
3131
3232 /* Protected Static Members */
 33+ protected static $filterCacheVersion = 1;
3334
3435 /** Array: List of module name/ResourceLoaderModule object pairs */
3536 protected $modules = array();
@@ -135,7 +136,7 @@
136137
137138 // Try for cache hit
138139 // Use CACHE_ANYTHING since filtering is very slow compared to DB queries
139 - $key = wfMemcKey( 'resourceloader', 'filter', $filter, md5( $data ) );
 140+ $key = wfMemcKey( 'resourceloader', 'filter', $filter, self::$filterCacheVersion, md5( $data ) );
140141 $cache = wfGetCache( CACHE_ANYTHING );
141142 $cacheEntry = $cache->get( $key );
142143 if ( is_string( $cacheEntry ) ) {
Property changes on: branches/wmf/1.17wmf1/includes/resourceloader/ResourceLoader.php
___________________________________________________________________
Modified: svn:mergeinfo
143144 Merged /trunk/phase3/includes/resourceloader/ResourceLoader.php:r82354

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82354Version the minifier cache in ResourceLoadercatrope22:13, 17 February 2011

Status & tagging log