wp_clean_plugins_cache()
Clears the plugins cache used by get_plugins() and by default, the plugin updates cache.
Хуков нет.
Возвращает
null
. Ничего.
Использование
wp_clean_plugins_cache( $clear_update_cache );
- $clear_update_cache(true|false)
- Whether to clear the plugin updates cache.
По умолчанию: true
Список изменений
С версии 3.7.0 | Введена. |
Код wp_clean_plugins_cache() wp clean plugins cache WP 6.1.1
function wp_clean_plugins_cache( $clear_update_cache = true ) { if ( $clear_update_cache ) { delete_site_transient( 'update_plugins' ); } wp_cache_delete( 'plugins', 'plugins' ); }