From c1eda9c8c6b56dab8f2ec007049751db52c7770d Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sat, 15 Sep 2007 21:50:53 +0000 Subject: [PATCH] Because we're modifying an existing cache variable we need to do a _set, not an _add, like we do other places we stick multiple cache values in a single var and key. git-svn-id: https://develop.svn.wordpress.org/trunk@6119 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index ebea8c0372..0b1e28de3b 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -666,7 +666,7 @@ function get_calendar($initial = true) { ob_end_clean(); echo $output; $cache[ $key ] = $output; - wp_cache_add( 'get_calendar', $cache, 'calendar' ); + wp_cache_set( 'get_calendar', $cache, 'calendar' ); } function delete_get_calendar_cache() {