pantheon-systems / wp-redis

WordPress Object Cache using Redis.
https://wordpress.org/plugins/wp-redis/
GNU General Public License v2.0
225 stars 67 forks source link

[BUGS-6248] wp_cache_flush_runtime should only clear local cache #413

Closed pwtyler closed 1 year ago

pwtyler commented 1 year ago

Follows #405 Replaces #412. Cherry-picked over in order to fix & run unit tests.

Introduced in https://github.com/pantheon-systems/wp-redis/pull/405. wp_cache_flush_runtime should not clear redis cache as well, just local runtime cache values. By passing false to flush method, only runtime caches are flushed.

Props @spacedmonkey for the fix.