rhubarbgroup / redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.
https://wordpress.org/plugins/redis-cache/
GNU General Public License v3.0
439 stars 150 forks source link

Throw exception when Redis pipeline returns unexpected results #392

Closed tkalimullin-coludlinux closed 2 years ago

tkalimullin-coludlinux commented 2 years ago

If the Redis pipeline returns an unexpected result, we will get an error when working with the array_combine function: "Warning: array_combine(): Both parameters should have an equal number of elements"

To avoid a false positive, it's best to stop interacting with the cache.

tillkruss commented 2 years ago

Turns out the stubs are not strict: https://github.com/phpredis/phpredis/pull/2015

tillkruss commented 2 years ago

I wonder if this comes from wp_cache_add_multiple([]) calls or something weird.

tillkruss commented 1 year ago

Related 7361b29.