Closed Stevemoretz closed 1 year ago
This is WordPress 6.1.
If you don't like that core feature you can disable it: https://make.wordpress.org/core/2022/10/07/improvements-to-wp_query-performance-in-6-1/
If you think the keys should expire, you can open an ticket with WordPress core.
This is WordPress 6.1.
If you don't like that core feature you can disable it: https://make.wordpress.org/core/2022/10/07/improvements-to-wp_query-performance-in-6-1/
If you think the keys should expire, you can open an ticket with WordPress core.
Wait so they are different queries and for each unique query one cache gets added? so it won't jam up redis? I thought it's like the same query is just getting added on and on with different strings.
It's not a thing to like or not, I just want to make sure that it doesn't jam up the database cause if it does it needs an expiration time that makes sense.
WordPress calls wp_cache_set()
without an expiration in your particular case, you can use WP_REDIS_MAXTTL
to force all keys to use a TTL.
WordPress calls
wp_cache_set()
without an expiration in your particular case, you can useWP_REDIS_MAXTTL
to force all keys to use a TTL.
Thanks good advice
Hi I have a lot of
In redis and their ttl is set to -1 which means they stay forever, those are cached at:
wp-includes/class-wp-term-query.php
line 788They should be non-persistence, otherwise they will fill your redis database.
I notice you have developed a way to ignore groups, may I ask why not add a filter and send in the key alongside group to make users able to ignore by key as well?