WordPress.org

Make WordPress Core

Changeset 15583


Ignore:
Timestamp:
09/07/2010 04:13:01 AM (8 years ago)
Author:
markjaquith
Message:

Do not cache terms indefinitely... use TTL of one day. fixes #11431. props Denis-de-Bernardy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r15491 r15583  
    10211021
    10221022    if ( empty($terms) ) {
    1023         wp_cache_add( $cache_key, array(), 'terms' );
     1023        wp_cache_add( $cache_key, array(), 'terms', 86400 ); // one day
    10241024        $terms = apply_filters('get_terms', array(), $taxonomies, $args);
    10251025        return $terms;
     
    10721072    }
    10731073
    1074     wp_cache_add( $cache_key, $terms, 'terms' );
     1074    wp_cache_add( $cache_key, $terms, 'terms', 86400 ); // one day
    10751075
    10761076    $terms = apply_filters('get_terms', $terms, $taxonomies, $args);
Note: See TracChangeset for help on using the changeset viewer.