[wp-trac] [WordPress Trac] #61193: Prime transient and transient timeout options in `get_transient`
WordPress Trac
noreply at wordpress.org
Fri May 10 23:59:16 UTC 2024
#61193: Prime transient and transient timeout options in `get_transient`
--------------------------------------+------------------------------
Reporter: peterwilsoncc | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+------------------------------
Comment (by peterwilsoncc):
In the [https://github.com/WordPress/wordpress-develop/pull/6540 linked
pull request]:
* Adds tests for `get`- and `set_transient()` to verify the number of
database calls is expected
* Primes the caches prior to calling `get_option()` in both `get`- and
`set_transient()`.
A broken test was pushed prior to each change to demonstrate the
improvement.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61193#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list