Index: trunk/phase3/includes/resourceloader/ResourceLoader.php |
— | — | @@ -29,6 +29,7 @@ |
30 | 30 | class ResourceLoader { |
31 | 31 | |
32 | 32 | /* Protected Static Members */ |
| 33 | + protected static $filterCacheVersion = 1; |
33 | 34 | |
34 | 35 | /** Array: List of module name/ResourceLoaderModule object pairs */ |
35 | 36 | protected $modules = array(); |
— | — | @@ -135,7 +136,7 @@ |
136 | 137 | |
137 | 138 | // Try for cache hit |
138 | 139 | // 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 ) ); |
140 | 141 | $cache = wfGetCache( CACHE_ANYTHING ); |
141 | 142 | $cacheEntry = $cache->get( $key ); |
142 | 143 | if ( is_string( $cacheEntry ) ) { |