Stale cache on wp_count_posts
-
Hi there,
I noticed that the data for post counts gets stale over time on my site. I use the Redis Object Cache. Specifically, this is for WooCommerce orders (
shop_order
)If I force a cache invalidation here in
Groups_Post_Access->wp_count_posts
the counts get recalculated properly.I couldn’t find where the count cache gets cleared when posts transition. It looks like it’s here in the core handling.
Is this a bug or am I missing something ?
Thanks!
Alex
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Stale cache on wp_count_posts’ is closed to new replies.