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:
- Scheduled tasks are not running properly on your web application. We attempt to ping our API from your site every three hours. However, since WordPress scheduled tasks run when you have visitors on your site, this might not happen if you have no visitors on your site. 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.
- 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 Sites > yourdomain.com > Settings. API Keys should match the API credentials on your WordPress site 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.
- Disable the default WordPress cronjob by adding the following to your wp-config.php file in the root folder of your site:
- Set up a cronjob in your hosting account management panel. In cPanel, this can be found under Advanced > Cron Jobs.
- Set the interval to something between 5 and 15 minutes.
- Set the cron command to the following (change the URL to your own):
- Now click on the Create new cron job button.