Clears the Plugins cache used by get_plugins() and by default, the Plugin Update cache.

Signature

wp_clean_plugins_cache( $clear_update_cache = true )
clear_update_cache
 (boolean) Whether to clear the Plugin updates cache
Default: true

Return

(void)

Source

function wp_clean_plugins_cache( $clear_update_cache = true ) {
	if ( $clear_update_cache )
		delete_site_transient( 'update_plugins' );
	wp_cache_delete( 'plugins', 'plugins' );
}
WP Trac GitHub

Link here