From aa1b4e89683c3ebdced6a2f2c7ec563ae71beeab Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 16 Aug 2007 18:12:12 +0000 Subject: [PATCH] Set instead of add since the cache value has multiple keys that can change. Props josephscott. fixes #4743 git-svn-id: http://svn.automattic.com/wordpress/trunk@5879 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/bookmark.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/bookmark.php b/wp-includes/bookmark.php index 0162b8682..d04cad3b5 100644 --- a/wp-includes/bookmark.php +++ b/wp-includes/bookmark.php @@ -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); }