Make WordPress Core


Ignore:
Timestamp:
02/09/2014 05:41:07 PM (11 years ago)
Author:
wonderboymusic
Message:

Reuse the terms cache group for taxonomy cache invalidation.

See #22526, #14485, [27101], [27102].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/term/cache.php

    r27104 r27142  
    3535    function test_get_taxonomy_last_changed() {
    3636        $last_changed = get_taxonomy_last_changed( 'category' );
    37         $last_changed_cache = wp_cache_get( 'last_changed', 'category' );
     37        $key = 'category_last_changed';
     38        $last_changed_cache = wp_cache_get( $key, 'terms' );
    3839        $this->assertEquals( $last_changed, $last_changed_cache );
    39         wp_cache_delete( 'last_changed', 'category' );
     40        wp_cache_delete( $key, 'terms' );
    4041        $this->assertEquals( $last_changed, $last_changed_cache );
    4142        $last_changed = get_taxonomy_last_changed( 'category' );
Note: See TracChangeset for help on using the changeset viewer.