Definition:
function wp_suspend_cache_invalidation($suspend = true) {}
Suspend cache invalidation.
Turns cache invalidation on and off. Useful during imports where you don’t wont to do invalidations every time a post is inserted. Callers must be sure that what they are doing won’t lead to an inconsistent cache when invalidation is suspended.
Parameters
- bool $suspend: Whether to suspend or enable cache invalidation
Return values
returns:The current suspend setting
Source code
function wp_suspend_cache_invalidation($suspend = true) {
global $_wp_suspend_cache_invalidation;
$current_suspend = $_wp_suspend_cache_invalidation;
$_wp_suspend_cache_invalidation = $suspend;
return $current_suspend;
}
4153

February 12, 2011 


No comments yet... Be the first to leave a reply!