tollmanz / wordpress-pecl-memcached-object-cache

A WordPress object cache that uses the memcached (not memcache) PECL extension.
233 stars 114 forks source link

detect change in `getMulti()` signature #85

Open webaware opened 8 years ago

webaware commented 8 years ago

Memcached methods getMulti() and getMultiByKey() have changed in the latest pecl release. CAS tokens are no longer accepted, leading to fewer method arguments.

https://github.com/php-memcached-dev/php-memcached/issues/229

This PR handles the switch by using reflection to inspect (once) the methods' arguments, so that they can be called without failing on either method signature.

webaware commented 8 years ago

Issue #86

webaware commented 8 years ago

Original commit didn't get the CAS tokens; second commit uses Memcached::GET_EXTENDED to get the CAS tokens as well.