wp_suspend_cache_invalidation
wp_suspend_cache_invalidation ( $suspend = true )
Parameters:- (bool) suspend Optional. Whether to suspend or enable cache invalidation. Default true.
Returns:- (bool) The current suspend setting.
Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: —
Description
Suspends cache invalidation.Turns cache invalidation on and off. Useful during imports where you don't want 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.