[wp-trac] [WordPress Trac] #35430: Should the 'counts' cache group be persistent?

WordPress Trac noreply at wordpress.org
Wed Jan 13 02:58:56 UTC 2016


#35430: Should the 'counts' cache group be persistent?
-------------------------+-----------------------------
 Reporter:  wjywbs       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Cache API    |    Version:  4.4
 Severity:  normal       |   Keywords:
  Focuses:  performance  |
-------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35430>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list