MDL-56675 cachestore_memcached: Disable store if not purgeable
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 2 Nov 2016 01:41:14 +0000 (09:41 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 3 May 2017 01:24:23 +0000 (09:24 +0800)
commit77f1729eec700431f24c1594a76697843b507406
treef949fd887461aa127ed433c845af94e5cec89541
parent06e3b6d8bab42b8e56d169d006f31f4a15684830
MDL-56675 cachestore_memcached:  Disable store if not purgeable

If the store is shared and the getAllKeys function is broken due to an
incompatability between libmemcached and memcached >= 1.4.23, then it is
not possible to purge the cache, and we cannot support the plugin.

This patch adjusts the isready check to additionally check if the
combination of libmemcached and memcached is affected by this issue.
cache/stores/memcached/lib.php
cache/stores/memcached/tests/memcached_test.php