Pushed the first woocommerce_geoip_updater execution to fifteen days in the future

This will prevent the routine from deleting the pre-update archive that we just moved in the previous update routine.
This commit is contained in:
Christopher Allford 2020-01-15 10:25:51 -08:00
parent 2b503e0409
commit e56e5dfc50
1 changed files with 1 additions and 1 deletions

View File

@ -2072,7 +2072,7 @@ function wc_update_390_move_maxmind_database() {
*/
function wc_update_390_change_geolocation_database_update_cron() {
wp_clear_scheduled_hook( 'woocommerce_geoip_updater' );
wp_schedule_event( time() + MINUTE_IN_SECONDS, 'fifteendays', 'woocommerce_geoip_updater' );
wp_schedule_event( time() + ( DAY_IN_SECONDS * 15 ), 'fifteendays', 'woocommerce_geoip_updater' );
}
/**