A WordPress-centric search engine for devs and theme authors



wp_clean_update_cache ›

Since4.1.0
Deprecatedn/a
wp_clean_update_cache ( No parameters )
Defined at:
Codex:

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



Source

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' );
}