dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "objectcache: Refresh key in HashBagOStuff::set() for maxKeys eviction"
[lhc/web/wiklou.git]
/
includes
/
libs
/
objectcache
/
HashBagOStuff.php
diff --git
a/includes/libs/objectcache/HashBagOStuff.php
b/includes/libs/objectcache/HashBagOStuff.php
index
a058ecf
..
7a514ef
100644
(file)
--- a/
includes/libs/objectcache/HashBagOStuff.php
+++ b/
includes/libs/objectcache/HashBagOStuff.php
@@
-51,7
+51,7
@@
class HashBagOStuff extends BagOStuff {
protected function expire( $key ) {
$et = $this->bag[$key][self::KEY_EXP];
- if ( $et ==
0
|| $et > time() ) {
+ if ( $et ==
self::TTL_INDEFINITE
|| $et > time() ) {
return false;
}