[wp-trac] [WordPress Trac] #52710: Taxonomy: Make it possible to bypass automatic caching of results in `get_terms()`
WordPress Trac
noreply at wordpress.org
Mon Jan 24 05:04:13 UTC 2022
#52710: Taxonomy: Make it possible to bypass automatic caching of results in
`get_terms()`
----------------------------------------+------------------------------
Reporter: dlh | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 2.3
Severity: normal | Resolution:
Keywords: needs-unit-tests has-patch | Focuses: performance
----------------------------------------+------------------------------
Comment (by peterwilsoncc):
Replying to [comment:5 dlh]:
> - Term objects would no longer be persistently cached,
[https://github.com/WordPress/wordpress-develop/blob/1283af/src/wp-
includes/class-wp-term.php#L179 since those also go into the 'terms'
group]. In the scenario I was describing, individual terms themselves
don't change all that often, but they're still accessed all the time, so
having them in the object cache might still be beneficial.
Of course, thanks for pointing that out among the other items.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52710#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list