Trigger GeoLite2 database download after update

Closes #19840
This commit is contained in:
Claudio Sanches 2018-04-24 15:32:27 -03:00
parent 574c829096
commit d496e28d08
1 changed files with 3 additions and 0 deletions

View File

@ -369,6 +369,9 @@ class WC_Install {
wp_schedule_event( time(), 'twicedaily', 'woocommerce_cleanup_sessions' );
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' );
}
/**