[wp-trac] [WordPress Trac] #54511: Remove cache time limitation in WP_Term_Query
WordPress Trac
noreply at wordpress.org
Thu Nov 25 15:59:14 UTC 2021
#54511: Remove cache time limitation in WP_Term_Query
--------------------------+-----------------------------
Reporter: spacedmonkey | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version: 4.6
Severity: normal | Keywords:
Focuses: performance |
--------------------------+-----------------------------
Currently there is a limitation, that term caches will only last one day.
See the following snippet.
{{{#!php
wp_cache_add( $cache_key, $terms, 'terms', DAY_IN_SECONDS );
}}}
If we can ensure that cache invalidation is happening correctly, this
limitation can be removed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54511>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list