[wp-trac] [WordPress Trac] #63022: Update cache.php - Improve function wp_cache_decr
WordPress Trac
noreply at wordpress.org
Wed Apr 23 15:27:02 UTC 2025
#63022: Update cache.php - Improve function wp_cache_decr
-----------------------------+------------------------------
Reporter: docjojo | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Cache API | Version:
Severity: normal | Resolution:
Keywords: has-patch close | Focuses: performance
-----------------------------+------------------------------
Changes (by flixos90):
* keywords: wp_cache_decr has-patch => has-patch close
* version: 6.7.2 =>
Comment:
@docjojo Thank you for raising this.
Can you share some context on why this is useful? Given that there is
already a `decr()` method required on the object class implementation, I
don't see a benefit of not using it.
Now if we were to rearchitect this from scratch, I could see it being
useful to avoid the method. But not using it when we have it does not seem
useful to me. It would only make sense to me if we planned to deprecate
this method and no longer require it on the object cache implementation.
But I'm not sure it's worth the change. Thoughts @tillkruess?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63022#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list