dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a17686
)
registration: Have cache entries expire after 24 hours
author
Kunal Mehta
<legoktm@gmail.com>
Tue, 19 May 2015 04:49:34 +0000
(21:49 -0700)
committer
Kunal Mehta
<legoktm@gmail.com>
Tue, 19 May 2015 04:49:34 +0000
(21:49 -0700)
Since our cache invalidation strategy is to just change the key, don't
have old entries stick around forever.
Change-Id: Ib62b69adfc2855a2ecd08558d4054d9b5d3ed571
includes/registration/ExtensionRegistry.php
patch
|
blob
|
history
diff --git
a/includes/registration/ExtensionRegistry.php
b/includes/registration/ExtensionRegistry.php
index
d938f07
..
75d0bb7
100644
(file)
--- a/
includes/registration/ExtensionRegistry.php
+++ b/
includes/registration/ExtensionRegistry.php
@@
-104,7
+104,7
@@
class ExtensionRegistry {
// did that, but it should be cached
$data['globals']['wgAutoloadClasses'] += $data['autoload'];
unset( $data['autoload'] );
- $this->cache->set( $key, $data );
+ $this->cache->set( $key, $data
, 60 * 60 * 24
);
}
$this->queued = array();
}