Expire transient after a week

This commit is contained in:
Gerhard 2014-05-19 14:11:18 +02:00 committed by Mike Jolley
parent 8b874753d7
commit b96d1f5e61
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}
}