WordPress.org

Make WordPress Core

Opened 4 days ago

Last modified 4 days ago

#54511 new enhancement

Remove cache time limitation in WP_Term_Query

Reported by: spacedmonkey Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6
Component: Taxonomy Keywords:
Focuses: performance Cc:

Description (last modified by spacedmonkey)

Currently there is a limitation, that term caches found in WP_Term_Query will only last one day. See the following snippet.

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. Once this limitation is removed, cache will live until their are correctly invalidation.

Change History (1)

#1 @spacedmonkey
4 days ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.