r93737 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93736‎ | r93737 | r93738 >
Date:12:47, 2 August 2011
Author:midom
Status:ok
Tags:
Comment:
avoid not caching data because of stupid memcached heuristics on ttl value
Modified paths:
  • /branches/wmf/1.17wmf1/includes/objectcache/MemcachedClient.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/includes/objectcache/MemcachedClient.php
@@ -959,6 +959,8 @@
960960 $this->stats[$cmd] = 1;
961961 }
962962
 963+ if ($exp > 2592000 and $exp < 1000000000) $exp = 2592000;
 964+
963965 $flags = 0;
964966
965967 if ( !is_scalar( $val ) ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r94199Merge r93797 to trunk, in a somewhat modified form: clamp expiries for memcac...catrope21:15, 10 August 2011

Status & tagging log