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

WordPress Trac noreply at wordpress.org
Fri Aug 29 00:23:42 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 peterwilsoncc):

 @hugod It's probably worth documenting the recommendation to clear
 transient options when enabling a cache in the
 [https://developer.wordpress.org/advanced-
 administration/performance/optimization/ handbook entry on optimization].

 We could consider calling `delete_option` when a transient changes if an
 object cache is enabled but my instinct is that this too would be a
 performance hit that would be best left for a plugin using the
 `set_transient_{$transient}` hook.

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


More information about the wp-trac mailing list