WPSEO_Utils::clear_cache()
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() WPSEO Utils::clear cache Yoast 24.9
public static function clear_cache() { if ( function_exists( 'w3tc_flush_posts' ) ) { w3tc_flush_posts(); } elseif ( function_exists( 'wp_cache_clear_cache' ) ) { wp_cache_clear_cache(); } }