[wp-trac] [WordPress Trac] #61193: Prime transient and transient timeout options in `get_transient`

WordPress Trac noreply at wordpress.org
Sat May 11 23:52:12 UTC 2024


#61193: Prime transient and transient timeout options in `get_transient`
---------------------------------------------+----------------------------
 Reporter:  peterwilsoncc                    |       Owner:  peterwilsoncc
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  6.6
Component:  Options, Meta APIs               |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  performance
---------------------------------------------+----------------------------
Changes (by peterwilsoncc):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58134" 58134]:
 {{{
 #!CommitTicketReference repository="" revision="58134"
 Options, Meta APIs: Prime transient options prior to use.

 Reduce the number of queries getting and setting transients on sites
 without a persistent cache.

 Transients are stored in two options: one each for the transient value and
 timeout. Priming the cache reduces the database queries for getting a
 transient from two to one.

 Props peterwilsoncc, swissspidy.
 Fixes #61193.
 }}}

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


More information about the wp-trac mailing list