mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user