Skip to:
Content

bbPress.org

Changeset 2450


Ignore:
Timestamp:
06/29/2010 06:39:06 PM (16 years ago)
Author:
matt
Message:

Incorrect check for if terms are cached or not, fixing this eliminates queries when a persistent cache is present. Fixes #1300. Hat tip: Nightgunner5.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-topic-tags.php

    r2079 r2450  
    271271
    272272    $terms = wp_cache_get( $cache_id, 'bb_topic_tag_terms' );
    273     if ( empty( $terms ) ) {
     273    if ( false === $terms ) {
    274274        $terms = $wp_taxonomy_object->get_object_terms( (int) $topic->topic_id, 'bb_topic_tag', $args );
    275275        wp_cache_set( $cache_id, $terms, 'bb_topic_tag_terms' );
Note: See TracChangeset for help on using the changeset viewer.