Index: branches/wmf/1.18wmf1/includes/objectcache/MemcachedClient.php |
— | — | @@ -958,6 +958,12 @@ |
959 | 959 | } else { |
960 | 960 | $this->stats[$cmd] = 1; |
961 | 961 | } |
| 962 | + |
| 963 | + // Memcached doesn't seem to handle very high TTL values very well, |
| 964 | + // so clamp them at 30 days |
| 965 | + if ( $exp > 2592000 ) { |
| 966 | + $exp = 2592000; |
| 967 | + } |
962 | 968 | |
963 | 969 | $flags = 0; |
964 | 970 | |