Configure LoadBalancer with $wgSharedTables after WAN cache autodetection
authorMáté Szabó <mszabo@wikia-inc.com>
Wed, 22 May 2019 16:03:50 +0000 (18:03 +0200)
committerMáté Szabó <mszabo@wikia-inc.com>
Wed, 22 May 2019 16:03:50 +0000 (18:03 +0200)
commit420c0e0f42509be4b404c74efeb6f77e93bf9599
treefe61d564a63dd4f79ccc989f1d07776ca26040e3
parentefaea6cc0e77ffad71e75621598a1fac55423d48
Configure LoadBalancer with $wgSharedTables after WAN cache autodetection

Currently, $wgSharedTables - if configured - is injected into the LoadBalancer
before the WAN cache autodetection runs. As such, if $wgSharedTables is set
but $wgMainWANCache was not explicitly given, the LoadBalancer will force
a premature instantion of the WAN cache with an EmptyBagOStuff backend,
preventing the autodetection logic from setting a correct backend.
This change moves $wgSharedTables initialization after the WAN cache
autodetection to accunt for this scenario.

Change-Id: I59bb52f42905cda1c2aa47bc589a2f0b36b2a28f
includes/Setup.php