MessageCache: Remove $wgMsgCacheExpiry configuration var
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 27 Aug 2019 15:35:49 +0000 (16:35 +0100)
committerKrinkle <krinklemail@gmail.com>
Tue, 27 Aug 2019 17:33:11 +0000 (17:33 +0000)
commit178d312eb80718c148e3e5774d116358c6e302f8
tree3b0f1364ca8a8248a2e7a60c7aa2ab2cd5736096
parentf084d0f194049ddccd3b1745f50dff1f3df1fa5b
MessageCache: Remove $wgMsgCacheExpiry configuration var

This variable has never been set to anything other than the default value of
24 hours as introduced in 2003 (r2203, r2204; or 036ff960ceedf6b38626).

The variable has never changed in core, it's not overridden at WMF,
and MessageCache is not constructed anywhere other than ServiceWiring.php
anywhere in repos on Wikimedia Gerrit, indexed by MediaWiki Codesearch,
or any GitHub-hosted repository (incl Wikia repos and WikiHow mirrors).

I've also checked all GitHub-hosted repos for boilerplates and/or public
settings files from devs or prod, and couldn't find any example of
this being overridden (after filtering out copies of the core files
themselves). Rather than having to support potentially hard-to-predict
interactions betweeen caching layers by checking its state, make it
a constant so we can code reason about it more easily.

Change-Id: Ie2e139001aae3ac54b509d94a3d917bb408eaca0
RELEASE-NOTES-1.34
docs/memcached.txt
includes/DefaultSettings.php
includes/ServiceWiring.php
includes/cache/MessageCache.php