Changeset 52669
- Timestamp:
- 02/03/2022 05:41:46 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term-query.php
r52332 r52669 776 776 777 777 if ( empty( $terms ) ) { 778 wp_cache_add( $cache_key, array(), 'terms' , DAY_IN_SECONDS);778 wp_cache_add( $cache_key, array(), 'terms' ); 779 779 return array(); 780 780 } … … 881 881 } 882 882 883 wp_cache_add( $cache_key, $terms, 'terms' , DAY_IN_SECONDS);883 wp_cache_add( $cache_key, $terms, 'terms' ); 884 884 885 885 if ( 'all' === $_fields || 'all_with_object_id' === $_fields ) { -
trunk/src/wp-includes/taxonomy.php
r52553 r52669 3519 3519 } 3520 3520 3521 wp_cache_delete( 'last_changed', 'terms' ); 3522 3521 3523 /** 3522 3524 * Fires after the object term cache has been cleaned. … … 3611 3613 wp_cache_delete( 'all_ids', $taxonomy ); 3612 3614 wp_cache_delete( 'get', $taxonomy ); 3615 wp_cache_delete( 'last_changed', 'terms' ); 3613 3616 3614 3617 // Regenerate cached hierarchy.
Note: See TracChangeset
for help on using the changeset viewer.