[wp-trac] [WordPress Trac] #21760: get_term_by() calls are not cached
WordPress Trac
noreply at wordpress.org
Thu Jun 9 21:45:45 UTC 2016
#21760: get_term_by() calls are not cached
-------------------------------------------------+-------------------------
Reporter: wonderboymusic | Owner:
Type: enhancement | wonderboymusic
Priority: normal | Status: reopened
Component: Taxonomy | Milestone: Future
Severity: normal | Release
Keywords: 2nd-opinion has-patch needs-unit- | Version: 2.3
tests | Resolution:
| Focuses:
| performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):
* keywords: needs-patch 2nd-opinion => 2nd-opinion has-patch needs-unit-
tests
* focuses: => performance
Comment:
The latest patch that I added is pretty simple. It creates the caches when
first requesting get_term_by. Invalidation happens when the term cache
clean is called. I think this is a solvable problem...
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21760#comment:90>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list