From b96d1f5e61b9a8de51a5888bf335d15e46bddbe0 Mon Sep 17 00:00:00 2001 From: Gerhard Date: Mon, 19 May 2014 14:11:18 +0200 Subject: [PATCH] Expire transient after a week --- includes/admin/class-wc-admin-addons.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/class-wc-admin-addons.php b/includes/admin/class-wc-admin-addons.php index 5df2ed5b004..b11321467dc 100644 --- a/includes/admin/class-wc-admin-addons.php +++ b/includes/admin/class-wc-admin-addons.php @@ -27,7 +27,7 @@ class WC_Admin_Addons { if ( ! is_wp_error( $addons_json ) ) { $addons = json_decode( wp_remote_retrieve_body( $addons_json ) ); if ( $addons ) { - set_transient( 'woocommerce_addons_data', $addons ); + set_transient( 'woocommerce_addons_data', $addons, 60*60*24*7 ); // 1 Week } } }