wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_clean_update_cache › WordPress Function

Since4.1.0
已弃用n/a
wp_clean_update_cache ( 没有参数 )
定义在:
文档:

Clears existing update caches for plugins, themes, and core.



源码

function wp_clean_update_cache() {
	if ( function_exists( 'wp_clean_plugins_cache' ) ) {
		wp_clean_plugins_cache();
	} else {
		delete_site_transient( 'update_plugins' );
	}

	wp_clean_themes_cache();

	delete_site_transient( 'update_core' );
}