LocalisationCache: try harder to use LCStoreCDB
authorOri Livneh <ori@wikimedia.org>
Fri, 6 Nov 2015 01:27:47 +0000 (17:27 -0800)
committerOri Livneh <ori@wikimedia.org>
Fri, 6 Nov 2015 01:48:05 +0000 (17:48 -0800)
commit36171312ef0e1b9acdea876f300dca8f3ad9982e
treeab7eb93ad9189afa843a432970481e38c790b1f4
parent33a3e097cb196241f7d702c248531a7f134f4a0d
LocalisationCache: try harder to use LCStoreCDB

When the LocalisationCache class is set to 'detect', we prefer LCStoreCDB if
$wgCacheDirectory is set, but we default to LCStoreDB otherwise. Rather than
give up, we should try wfTempDir(), since any directory that meets its criteria
is also suitable for LCStoreCDB.

Change-Id: Id3e2d2b18ddb423647bf2e893bcf942722c0e097
includes/cache/LocalisationCache.php