mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 15:31:42 +01:00
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
This commit is contained in:
parent
5e34cab763
commit
aa1b4e8968
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user