From: Timo Tijhof Date: Fri, 30 Oct 2015 22:22:44 +0000 (+0000) Subject: objectcache: Use singleton cache in newAccelerator() X-Git-Tag: 1.31.0-rc.0~9161^2 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=e970b79d4c42097dfac41abf21d0485f6ed19be4;p=lhc%2Fweb%2Fwiklou.git objectcache: Use singleton cache in newAccelerator() It was re-creating objects for each call. This matches behaviour of newAnything(). Bug: T115729 Change-Id: If12aedae7f9f791eb8e233eb241c12efd2921762 --- diff --git a/includes/objectcache/ObjectCache.php b/includes/objectcache/ObjectCache.php index 59c3c1f319..3d14c33f10 100644 --- a/includes/objectcache/ObjectCache.php +++ b/includes/objectcache/ObjectCache.php @@ -269,7 +269,7 @@ class ObjectCache { } $id = $fallback; } - return self::newFromId( $id ); + return self::getInstance( $id ); } /**