Skip to content

App is showing the firewall of my site as delayed

This firewall error might show up on the Patchstack App.

On the Patchstack App, you might see that the firewall is indicating as being “delayed”.
This can happen due to a few reasons:

  1. Scheduled tasks are not running properly on your web application. We attempt to ping our API from your site every hour. However, since WordPress scheduled tasks run when you have visitors on your site, this might not happen if you have no visitors on your app. It is also possible that scheduled tasks are not running at all on your site even when you have visitors due to an error. You can use a plugin such as WP Crontrol to keep track of your scheduled tasks.
  2. You do not have the right API key configured on the license settings page. The API credentials which you can find on the Patchstack App under My Sites > yourdomain.com > Settings. API Keys should match the API credentials on your application at wp-admin > Settings > Security.

One potential solution to reason 1 is to use a server-based scheduled task that triggers your scheduled tasks even when you have no visitors.

  1. Disable the default WordPress cronjob by adding the following to your wp-config.php file in the root folder of your site:
    define('DISABLE_WP_CRON', true);
  2. Set up a cronjob in your hosting account management panel. In cPanel, this can be found under Advanced > Cron Jobs.
  3. Set the interval to something between 5 and 15 minutes.
  4. Set the cron command to the following (change the URL to your own):
    wget -q -O - https://examplesite.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1
  5. Now click on the Create new cron job button.