WPSEO_Sitemaps_Cache::invalidate()
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
. Ничего (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() WPSEO Sitemaps Cache::invalidate Yoast 25.0
public static function invalidate( $type ) { self::clear( [ $type ] ); }