Helper: Refresh update transients when refreshing update data.

This commit is contained in:
Konstantin Kovshenin 2017-08-28 10:31:08 +03:00
parent d854f92ee1
commit 0cafd1a499
1 changed files with 4 additions and 0 deletions

View File

@ -289,6 +289,10 @@ class WC_Helper_Updater {
public static function flush_updates_cache() {
delete_transient( '_woocommerce_helper_updates' );
delete_transient( '_woocommerce_helper_updates_count' );
// Refresh update transients
set_site_transient( 'update_plugins', get_site_transient( 'update_plugins' ) );
set_site_transient( 'update_themes', get_site_transient( 'update_themes' ) );
}
/**