r69199 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69198‎ | r69199 | r69200 >
Date:00:55, 9 July 2010
Author:tstarling
Status:ok
Tags:
Comment:
Cache very few File objects in the RepoGroup cache, since massive DjVu metadata on Commons causes OOM on some category pages. WMF-specific patch for now.
Modified paths:
  • /branches/wmf/1.16wmf4/includes/filerepo/RepoGroup.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/includes/filerepo/RepoGroup.php
@@ -16,7 +16,7 @@
1717 var $cache;
1818
1919 protected static $instance;
20 - const MAX_CACHE_SIZE = 1000;
 20+ const MAX_CACHE_SIZE = 5; # WMF patch was 1000
2121
2222 /**
2323 * Get a RepoGroup instance. At present only one instance of RepoGroup is

Follow-up revisions

RevisionCommit summaryAuthorDate
r69200Reapply r69199.tstarling00:57, 9 July 2010
r975121.18wmf1 Merge r60970, r69199, r77266, r96827 (Some of the revisions from r81...reedy16:01, 19 September 2011

Status & tagging log