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
425 stars 148 forks source link

Handle unexpected result from Redis pipeline quietly. #486

Closed martinkrcho closed 1 year ago

martinkrcho commented 1 year ago

This pull requests changes the behaviour of caching functions that utilize Redis pipeline to execute multiple commands in batch. When the pipeline returns unexpected results, it no longer logs an error, but discard the current transaction and returns an empty array.