objectcache: Never use CACHE_NONE for CACHE_ANYTHING
authorBrian Wolff <bawolff+wn@gmail.com>
Wed, 15 Mar 2017 22:51:13 +0000 (22:51 +0000)
committerKrinkle <krinklemail@gmail.com>
Thu, 30 Mar 2017 01:38:15 +0000 (01:38 +0000)
commitc5a0fa5bed4c5aafdf0721c1d05978576107bd85
tree7b398b8b213a8183e1a6ad59c92c3c5b7f64eb1f
parent9f53096051639c08cba43f9b72650ef5adee1df0
objectcache: Never use CACHE_NONE for CACHE_ANYTHING

If $wgMainCacheType = CACHE_ACCEL, but there is no APC, then its
possible that CACHE_ANYTHING will default to CACHE_NONE because
that's what CACHE_ACCEL would do.

Possibly also T147161

Bug: T160519
Change-Id: I9ac2d071437b35a0f9cd3678e2279628f7b1931e
includes/objectcache/ObjectCache.php
tests/phpunit/includes/objectcache/ObjectCacheTest.php [new file with mode: 0644]