[wp-trac] [WordPress Trac] #58962: Provide a way to load multiple specific options with a single database request
WordPress Trac
noreply at wordpress.org
Tue Oct 17 23:31:55 UTC 2023
#58962: Provide a way to load multiple specific options with a single database
request
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner: flixos90
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.4
Component: Options, Meta APIs | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests has-dev- | Focuses:
note | performance
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* keywords: has-patch, has-unit-tests, has-dev-note => has-patch has-unit-
tests has-dev-note
Comment:
@flixos90 Sorry to do that thing I do but I didn't see the PR at the time.
All the other cache priming functions following the naming convention of
`_prime_thing_caches`:
* `_prime_post_caches`
* `_prime_post_parent_id_caches` (new in 6.4)
* `_prime_site_caches`
* `_prime_term_caches`
* `_prime_comment_caches`
* `_prime_network_caches`
The other various functions that modify a cache in some way end in
`_caches` too, `update_post_caches`, `update_post_author_caches`, etc.
While it's possible, I think it best if the new option priming functions
follow the same convention.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58962#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list