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:
49d810f
)
SiteStats: Avoid deprecated wfMemcKey()
author
Kunal Mehta
<legoktm@member.fsf.org>
Thu, 25 May 2017 07:46:22 +0000
(
00:46
-0700)
committer
Kunal Mehta
<legoktm@member.fsf.org>
Thu, 25 May 2017 18:20:23 +0000
(11:20 -0700)
And the deprecated ObjectCache::getMainWANInstance() while we're at it.
Change-Id: If9d9ab9c661c003a3aa6c2d956700b1870a52f41
includes/SiteStats.php
patch
|
blob
|
history
diff --git
a/includes/SiteStats.php
b/includes/SiteStats.php
index
d253805
..
6ce1aed
100644
(file)
--- a/
includes/SiteStats.php
+++ b/
includes/SiteStats.php
@@
-189,9
+189,9
@@
class SiteStats {
* @return int
*/
static function numberingroup( $group ) {
- $cache =
ObjectCache::getMainWANInstanc
e();
+ $cache =
MediaWikiServices::getInstance()->getMainWANObjectCach
e();
return $cache->getWithSetCallback(
-
wfMemc
Key( 'SiteStats', 'groupcounts', $group ),
+
$cache->make
Key( 'SiteStats', 'groupcounts', $group ),
$cache::TTL_HOUR,
function ( $oldValue, &$ttl, array &$setOpts ) use ( $group ) {
$dbr = wfGetDB( DB_REPLICA );