WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
функция не описана

wp_suspend_cache_invalidation() WP 2.7.0

Suspend 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.

Хуков нет.

Возвращает

true/false. The current suspend setting.

Использование

wp_suspend_cache_invalidation( $suspend );
$suspend(true/false)
Whether to suspend or enable cache invalidation.
По умолчанию: true

Заметки

  • Global. true/false. $_wp_suspend_cache_invalidation

Список изменений

С версии 2.7.0 Введена.

Код wp suspend cache invalidation: wp-includes/functions.php WP 5.2.2

<?php
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;
}