[wp-trac] [WordPress Trac] #58962: Provide a way to load multiple specific options with a single database request
WordPress Trac
noreply at wordpress.org
Mon Oct 23 21:46:01 UTC 2023
#58962: Provide a way to load multiple specific options with a single database
request
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner: flixos90
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.4
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests has-dev- | Focuses:
note dev-feedback | performance
-------------------------------------------------+-------------------------
Comment (by hellofromTonya):
In talking with @peterwilsoncc, he clarified that in working with
@spacedmonkey that ALL prime cache functions are intended to be publicly
used by plugins and themes.
>the prime functions are no longer internal. Jonny and I have been making
a concerted effort to encourage their use by extenders to imrpove the
performance of sites using plugins.
My agreement in comment:25 was predicated on the idea that only these 2
new functions were to be public for plugins to use and that all the other
prime functions, using the `_prime_{thing}_caches()` structure, were for
Core-only internal usage.
If indeed ''all priming functions'' are for public usage, then the
renaming of the 2 functions in this ticket should be reconsidered, minus
the `wp_` prefix.
Let's continue the discussion before backporting [56990] to 6.4. cc
@flixos90 @joemcgill @peterwilsoncc
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58962#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list