Make WordPress Core

Changeset 6119


Ignore:
Timestamp:
09/15/2007 09:50:53 PM (17 years ago)
Author:
matt
Message:

Because we're modifying an existing cache variable we need to do a _set, not an _add, like we do other places we stick multiple cache values in a single var and key.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r6074 r6119  
    667667    echo $output;
    668668    $cache[ $key ] = $output;
    669     wp_cache_add( 'get_calendar', $cache, 'calendar' );
     669    wp_cache_set( 'get_calendar', $cache, 'calendar' );
    670670}
    671671
Note: See TracChangeset for help on using the changeset viewer.