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:
parent
0675c6fc51
commit
c1eda9c8c6
|
@ -666,7 +666,7 @@ function get_calendar($initial = true) {
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
echo $output;
|
echo $output;
|
||||||
$cache[ $key ] = $output;
|
$cache[ $key ] = $output;
|
||||||
wp_cache_add( 'get_calendar', $cache, 'calendar' );
|
wp_cache_set( 'get_calendar', $cache, 'calendar' );
|
||||||
}
|
}
|
||||||
|
|
||||||
function delete_get_calendar_cache() {
|
function delete_get_calendar_cache() {
|
||||||
|
|
Loading…
Reference in New Issue