Make WordPress Core


Ignore:
Timestamp:
04/12/2007 02:27:12 AM (18 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/bookmark.php

    r5119 r5248  
    137137
    138138    $cache[ $key ] = $results;
    139     wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
     139    wp_cache_add( 'get_bookmarks', $cache, 'bookmark' );
    140140
    141141    return apply_filters('get_bookmarks', $results, $r);
Note: See TracChangeset for help on using the changeset viewer.