objectcache: Deprecate ObjectCache::getWANInstance
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 8 Oct 2019 21:17:22 +0000 (22:17 +0100)
committerKrinkle <krinklemail@gmail.com>
Thu, 10 Oct 2019 22:06:29 +0000 (22:06 +0000)
commitc1ac4b2546f506e19c03b1ebd0143ba42d97ebb2
tree218fc3d89276a9797e41ff168c420a8472c1c42b
parentdbba623b8bf23119add41931ed858a1fe489aa57
objectcache: Deprecate ObjectCache::getWANInstance

This is not used anywhere. Once removed we can remove a bunch
more protected/private methods in this class that are all only
here still due to this one public method.

It was obsolete when the creation of WANObjectCache was
moved to ServiceWiring. In theory multiple instances can be
created but in the future that should be done by either constructing
the WANObjectCache directly where needed, or by implementing
it as a custom service.

Also deprecate ObjectCache::newWANCacheFromParams. This should
have been `@internal`, but oh well. Deprecate as well since
only needed by getWANInstance(). No longer used internally
either as of I118b6f01e4940.

Change-Id: Icc500e76c860c35ff40fdee47142c63091829dfe
(cherry picked from commit b10b56dc6923062314f136945da255a24e52a585)
RELEASE-NOTES-1.34
includes/objectcache/ObjectCache.php