Actually make use of wp_cache_add to avoid unnecessary cache writes. Props skeltoac. fixes #4138

git-svn-id: https://develop.svn.wordpress.org/trunk@5248 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2007-04-12 02:27:12 +00:00
parent e8c058cfc1
commit d8c8ecb711
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -635,7 +635,7 @@ function get_calendar($initial = true) {
ob_end_clean();
echo $output;
$cache[ $key ] = $output;
wp_cache_set( 'get_calendar', $cache, 'calendar' );
wp_cache_add( 'get_calendar', $cache, 'calendar' );
}
function delete_get_calendar_cache() {