Skip to content

Commit

Permalink
Fix. CDNHeadersChecker. Run 1m cron instead of immediate run on setti…
Browse files Browse the repository at this point in the history
…ngs save.
  • Loading branch information
alexandergull committed Feb 26, 2024
1 parent 0f5806d commit f21315c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/spbc-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -5139,8 +5139,8 @@ function spbc__send_local_settings_to_api($settings)
function spbc_cdn_checker__run_check_on_settings_change($settings)
{
if ( isset($settings['secfw__get_ip__enable_cdn_auto_self_check']) && $settings['secfw__get_ip__enable_cdn_auto_self_check'] != 0) {
CDNHeadersChecker::sendCDNCheckerRequest();
SpbcCron::updateTask('cdn_check', 'spbc_cdn_checker__send_request', 86400, time() + 86400);
//CDNHeadersChecker::sendCDNCheckerRequest();
SpbcCron::updateTask('cdn_check', 'spbc_cdn_checker__send_request', 86400, time() + 60);
}
}

Expand Down

0 comments on commit f21315c

Please sign in to comment.