WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/wp suspend cache invalidation

Contents

Description

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.

Usage

<?php wp_suspend_cache_invalidation$suspend ); ?>

Parameters

$suspend
(boolean) (optional) Whether to suspend or enable cache invalidation
Default: true

Return Values

(boolean) 
The current suspend setting

Change Log

Since: 2.7

Source File

wp_suspend_cache_invalidation() is located in wp-includes/functions.php