WPSEO_Sitemaps_Cache::invalidate()public staticYoast 1.5.4

Delete cache transients for index and specific type.

Always deletes the main index sitemaps cache, as that's always invalidated by any other change.

{} Это метод класса: WPSEO_Sitemaps_Cache{}

Хуков нет.


null. Ничего.


$result = WPSEO_Sitemaps_Cache::invalidate( $type );
$type(строка) (обязательный)
Sitemap type to invalidate.

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

С версии 1.5.4 Введена.
С версии 3.2 Changed from function wpseo_invalidate_sitemap_cache() to method in this class.

Код WPSEO_Sitemaps_Cache::invalidate() Yoast 19.7.1

public static function invalidate( $type ) {

	self::clear( [ $type ] );