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
This commit is contained in:
Matt Mullenweg 2007-09-15 21:50:53 +00:00
parent 0675c6fc51
commit c1eda9c8c6
1 changed files with 1 additions and 1 deletions

View File

@ -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() {