CS-Cart “Cron Jobs” add-on allows you to perform automatically the following actions at set intervals:
- Backup database;
- Optimize database;
- Clear cache and regenerate site map;
- Clear stats (Administration --> Statistics);
- Clear logs (Administration --> Logs);
- Send backup to administrator's email.
Cron jobs is a scheduled task which is automatically run at regular intervals. It's very convenient for online store owners to use cron jobs instead of doing such necessary tasks as database backup, etc. manually.
Compatibility:
The script is developed for CS-Cart Professional 2.0.1 and all above versions including 3.0.x.
The add-on is also compatible with CS-Cart 4.0.х - 4.3.x.
Notes
1. We offer free installation of this add-on only for the default CS-Cart versions (that don't have any file changes and additional modules). Otherwise, the installation may require additional charge.
2. After the payment is confirmed, you will be able to download the add-on from the order details page.
Please remember that we can make any changes in this add-on due to your demands.
Please, contact us if you have any questions about this product or experience any problems after the purchase, we are always ready to assist you.
What commands to use to run the script through my cron configuration?
There are three ways to do it:
Method
|
Cron run command
|
Wget |
wget -q "http://example.com/cron_jobs.php" |
Curl |
curl "http://example.com/cron_jobs.php" |
PHP |
php [absolute path]/cron_jobs.php |
please, replace:
- [absolute path] the absolute path to the cron_jobs.php script stored on your server (if you do not know this path, please, contact your hosting provider or server administrator)
Please, note! Sometimes you may need to use a full path to Curl, Wget or PHP instead of the name execution. (Please, contact your hosting provider or server administrator to get the solution)
for example:
- instead of php perhaps you should use /usr/bin/php
What to do Step by Step:
- Upload and unpack the Cron Jobs add-on.
- Install the Cron Jobs add-on (click the Installation tab to see the instruction).
- In the add-on settings choose the necessary actions and set regular intervals.
- Сonfigure the cron task on the server (contact your server administrator if needed).
- Add [CS-Cart root directory]/cron_jobs.php script into cron jobs on your server by using one of the methods listed above.
- It is obligatory to set the script run once a day.
In case you need to get notification e-mails which include information about the perfomed work just tick the checkbox opposite Notification e-mail and enter your e-mail in the field below.
See the screenshot with the add-on settings:
Where can I find database backup script made?
Backup is saved in [CS-Cart root dir]/var/database/backup/ directory
Note! After the installation of the Cron jobs add-on it will launch for the first time and perform all the actions included in Cron jobs options at once. Then it will automatically run at regular intervals customized by admin.
Installation instruction
1. Download the archive with the Cron jobs add-on for CS-Cart version you use.
2. Unpack the archive's content and upload files to your server in the root directory with the installed CS-Cart.
3. Log into the administration panel of your store, go to the Administration -> Add-ons.
4. In the list of add-ons find the Cron jobs add-on and click Install opposite to its name.
5. Make sure that the status is Active.
6. That's all, the add-on is installed.