MDL-56675 cachestore_memcached: Disable store if not purgeable
commit9214bc50a2f161e5036e8cb5af46ac167e97cb89
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 2 Nov 2016 01:41:14 +0000 (2 09:41 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 3 May 2017 01:24:51 +0000 (3 09:24 +0800)
treeea0086cd650baee0ca712916aabb77213e54a748
parent75528e9305bbad009ce292998870b63a7a433e6e
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