Set instead of add since the cache value has multiple keys that can change. Props josephscott. fixes #4743

git-svn-id: https://develop.svn.wordpress.org/trunk@5879 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-08-16 18:12:12 +00:00
parent 558147cb2f
commit 820d43f538

View File

@ -137,7 +137,7 @@ function get_bookmarks($args = '') {
$results = $wpdb->get_results($query);
$cache[ $key ] = $results;
wp_cache_add( 'get_bookmarks', $cache, 'bookmark' );
wp_cache_set( 'get_bookmarks', $cache, 'bookmark' );
return apply_filters('get_bookmarks', $results, $r);
}