WPSEO_Utils::clear_cache()public staticYoast 1.8.0

Clears the WP or W3TC cache depending on which is used.

Метод класса: WPSEO_Utils{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WPSEO_Utils::clear_cache();

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

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

Код WPSEO_Utils::clear_cache() Yoast 22.4

public static function clear_cache() {
	if ( function_exists( 'w3tc_pgcache_flush' ) ) {
		w3tc_pgcache_flush();
	}
	elseif ( function_exists( 'wp_cache_clear_cache' ) ) {
		wp_cache_clear_cache();
	}
}