[wp-trac] [WordPress Trac] #63045: Add caching to `count_many_users_posts()`

WordPress Trac noreply at wordpress.org
Sat Sep 20 11:30:34 UTC 2025


#63045: Add caching to `count_many_users_posts()`
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.9
Component:  Users                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing                                        |  performance
-------------------------------------------------+-------------------------
Changes (by rollybueno):

 * keywords:  has-patch has-unit-tests 2nd-opinion dev-feedback changes-
     requested => has-patch has-unit-tests needs-testing


Comment:

 Update: @peterwilsoncc and @westonruter have reviewed PR
 https://github.com/WordPress/wordpress-develop/pull/9106, and I’ve applied
 their feedback. The changes include:

 1. Switching to md5 for the cache key to handle Memcached’s 250-character
 limit
 2. Replacing with `wp_cache_get_salted()`
 3. Adding a dedicated unit test function specifically for this ticket

 Marking the ticket as `needs testing`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63045#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list