From 4216f95b64e8192f6d0aa66764cfc1d4f6b10171 Mon Sep 17 00:00:00 2001 From: matt 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: http://svn.automattic.com/wordpress/trunk@6119 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ebea8c037..0b1e28de3 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() {