Introduction

The most helpful feature of WordPatch is that it automatically runs mods when any of the following events occur:

  • WordPress is updated

  • Any plugin is updated

  • Any theme is updated


However, please note that by default mods do not run immediately after these events are detected. Instead, when one of the above events is detected by WordPatch, a cooldown timer begins to run to ensure that, if another event is detected before the timer has fully elapsed, then the timer will be restarted. Once the cooldown timer has fully elapsed, all enabled mods are placed into a queue to be processed. By default, the cooldown timer is set to three minutes to ensure maximum satisfaction. If you would like to change the length of the cooldown timer, read the Global WordPatch Settings article by clicking here.


Setting Up Cron

In order to ensure that your website is running mods in the background, the JointByte API server makes an HTTP call to your rescue script once every few minutes. If your website is publicly available on the internet, follow the steps below to ensure that your rescue script is called once a minute (recommended interval). Please only follow these steps if you know you are on a local development or VPN-restricted environment, since it is unnecessary for most installations.


Linux SSH Instructions

Login to your web server via SSH and ensure you are able to use sudo as the current user. Next, enter the following command to edit your list of crons: sudo crontab -e


Press enter and use the “Page Down” or arrow keys to navigate to the end of the file. Create a new line and enter the following (please make sure to switch the URL to your rescue script):

* * * * * wget -O /dev/null https://yoursiteurl.com/wp-admin/wordpatch-rescue.php?action=work


cPanel Instructions

Login to your cPanel for your web host provider. Navigate to the “Advanced” section and click on Cron Jobs. Once you are presented with the form for creating a new cron job, select Every Minute from the Common Settings dropdown.


In the text input labeled “Command,” enter the following (please make sure to switch the URL to your rescue script):

wget -O /dev/null https://yoursiteurl.com/wp-admin/wordpatch-rescue.php?action=work