[wp-trac] [WordPress Trac] #39242: Add caching to count_user_posts()
WordPress Trac
noreply at wordpress.org
Wed Mar 19 23:46:28 UTC 2025
#39242: Add caching to count_user_posts()
-------------------------------------------------+-------------------------
Reporter: johnjamesjacoby | Owner:
| spacedmonkey
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.8
Component: Users | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch needs-testing has-unit- | Focuses: rest-api,
tests commit | performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):
* status: closed => reopened
* resolution: fixed =>
Comment:
While conducting some testing on the `count_user_posts` function, I
observed that the cache is frequently being invalidated. I believe it
would be beneficial to implement a mechanism that reduces the frequency of
cache invalidation, thereby preventing the object cache from being filled
with these invalid cache keys.
Reopenning so we can work on a fix. CC @peterwilsoncc @joemcgill
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39242#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list