Make WordPress Core


Ignore:
Timestamp:
04/12/2007 02:27:12 AM (17 years ago)
Author:
ryan
Message:

Actually make use of wp_cache_add to avoid unnecessary cache writes. Props skeltoac. fixes #4138

File:
1 edited

Legend:

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

    r5144 r5248  
    636636    echo $output;
    637637    $cache[ $key ] = $output;
    638     wp_cache_set( 'get_calendar', $cache, 'calendar' );
     638    wp_cache_add( 'get_calendar', $cache, 'calendar' );
    639639}
    640640
Note: See TracChangeset for help on using the changeset viewer.