Quantcast
Channel: WordPress.org Forums » [Redis Object Cache] Support
Viewing all articles
Browse latest Browse all 143

Request: Filter hook to skip persistent caching at `key` / `value` level

$
0
0

Replies: 3

Thank you for your efforts on this essential plugin 🚀

We understand there exists a filter to add groups to a non-persistent list (redis_cache_add_non_persistent_groups). However it would be extremely helpful if there were a more granular filter to control persistent caching at the $key / $value level.

Here’s an example implementation of such a filter:

if ( ! apply_filters( 'redis_cache_skip_persistent_cache', false, $key, $value, $group ) && ! $this->is_ignored_group( $group ) && $this->redis_status() ) {

// ...

}

Is this something you’d be willing to introduce into your Redis implementation?

Thanks for your time 👍


Viewing all articles
Browse latest Browse all 143

Trending Articles