Merge pull request #18026 from woocommerce/add/clear-addons-transients
Clear addons transients on update to 3.3.0
This commit is contained in:
commit
38984b03ce
|
@ -100,6 +100,7 @@ class WC_Install {
|
|||
'wc_update_330_image_options',
|
||||
'wc_update_330_product_stock_status',
|
||||
'wc_update_330_set_default_product_cat',
|
||||
'wc_update_330_clear_transients',
|
||||
'wc_update_330_db_version',
|
||||
),
|
||||
);
|
||||
|
|
|
@ -1551,3 +1551,11 @@ function wc_update_330_product_stock_status() {
|
|||
function wc_update_330_db_version() {
|
||||
WC_Install::update_db_version( '3.3.0' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear addons page transients
|
||||
*/
|
||||
function wc_update_330_clear_transients() {
|
||||
delete_transient( 'wc_addons_sections' );
|
||||
delete_transient( 'wc_addons_featured' );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue