Reduce inital delay for geo data

This commit is contained in:
Mike Jolley 2019-03-08 18:20:31 +00:00
parent 15f0d2566d
commit 87bce1f4a2
1 changed files with 2 additions and 2 deletions

View File

@ -404,8 +404,8 @@ class WC_Install {
wp_schedule_event( strtotime( 'first tuesday of next month' ), 'monthly', 'woocommerce_geoip_updater' );
wp_schedule_event( time() + 10, apply_filters( 'woocommerce_tracker_event_recurrence', 'daily' ), 'woocommerce_tracker_send_event' );
// Trigger GeoLite2 database download after 5 minutes.
wp_schedule_single_event( time() + ( MINUTE_IN_SECONDS * 5 ), 'woocommerce_geoip_updater' );
// Trigger GeoLite2 database download after 1 minute1.
wp_schedule_single_event( time() + ( MINUTE_IN_SECONDS * 1 ), 'woocommerce_geoip_updater' );
}
/**