Should the 'counts' cache group be persistent?
|Reported by:||wjywbs||Owned by:|
|Component:||Cache API||Keywords:||needs-unit-tests 4.8-early|
I checked that the places storing data in the 'counts' cache group have proper way to delete the data in cache on updates. For example, wp_count_posts() stores the post count, and _transition_post_status() deletes the count. So could we change the 'counts' cache group to be persistent? This can reduce the repeated counting queries to the database.