[wp-trac] [WordPress Trac] #63450: Race condition for transient with no expiration and object cache active

WordPress Trac noreply at wordpress.org
Wed Aug 27 07:36:40 UTC 2025


#63450: Race condition for transient with no expiration and object cache active
-----------------------------+----------------------
 Reporter:  hugod            |       Owner:  (none)
     Type:  defect (bug)     |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Cache API        |     Version:
 Severity:  normal           |  Resolution:  wontfix
 Keywords:  has-patch close  |     Focuses:
-----------------------------+----------------------

Comment (by hugod):

 Hi,
 Thanks for your feedback. I get your concerns about performance. But this
 is related only to my code proposal. Not the issue itself.
 I think you focused too much on the PR and not the issue. There are other
 ways to fix it IMHO.
 For example, we could consider to *not* fetch data from `wp_options` table
 at all when querying transient with object cache enabled.

 > I'm not too concerned about this because transients are designed to be
 highly disposable, their existence from one second to another isn't
 guaranteed; this is the case even for non-expiring transients.
 I agree, but in this case I expect to either get the right value or
 nothing at all, not another value.

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


More information about the wp-trac mailing list