PrestaShop cron jobs: the Cron tasks manager module and server cron
· The AYT team · 5 min read

PrestaShop cron jobs are shop URLs called at fixed times: rebuilding the search index, generating the sitemap, syncing parcel statuses from the courier. PrestaShop has no built-in cron that starts by itself, so you need the "Cron tasks manager" module (technical name cronjobs) or a cron job created in your hosting panel. The dependable setup uses both: the module keeps the task list, and the server's cron calls it once an hour.
How cron works in PrestaShop
Every module that needs periodic runs gives you a URL with a token, for example https://shop.com/modules/gsitemap/gsitemap-cron.php?token=.... Something has to open that URL at the right interval. Without cron, nobody calls it and the task never runs: the sitemap goes stale and parcel statuses stop updating.
The Cron tasks manager module, made by PrestaShop, adds two things:
- a task list (each with a "Target link", hour, day, month and day of the week);
- one execution URL that runs every task due at the moment it's called.
Modules written for it can add themselves to the list. For the others you add their URL by hand.
Step 1: install the Cron tasks manager module
- In the back office open Modules → Module Manager and search for "Cron tasks manager".
- If it isn't among your installed modules, find it in the module catalog or download the archive from PrestaShop's GitHub and upload it with Upload a module.
- Click Install, then Configure.
The module needs PHP's cURL extension. If it's missing, a warning appears right in the module list.
Step 2: pick Advanced mode
In Configure, under Settings → Cron mode, there are two options:
- Basic: PrestaShop's web service calls your shop from outside. You depend on an external service you don't control, and on a local install it doesn't work at all.
- Advanced: you schedule the call from the server's cron. The module shows you the exact line to add.
Choose Advanced and save. A line like this appears under the form:
0 * * * * curl -k "https://shop.com/admin123abc/index.php?controller=AdminCronJobs&token=a1b2c3d4e5"
Copy it as it is. The token in the URL is unique to your shop and protects the execution: without it, the call answers "Invalid token". Don't publish the line anywhere.
Step 3: add the line to your hosting's cron
The five fields at the start (0 * * * *) mean "at minute 0 of every hour". The rest is the command.
With SSH you run crontab -e and paste the line. On hosting without SSH you open the panel's Cron Jobs page, put the schedule in the Minute, Hour, Day, Month and Weekday fields and the curl command in the command field. Add -s so curl's progress bar doesn't end up in your email:
curl -s "https://shop.com/admin123abc/index.php?controller=AdminCronJobs&token=a1b2c3d4e5"
The -k option in the generated line turns off certificate checks. If the shop has a valid SSL certificate, you don't need it.

Step 4: add the shop's tasks
Back in Cron tasks manager, click Add new task and fill in:
- Task description: a clear name, for example "Google sitemap";
- Target link: the module's cron URL, absolute and on the same domain as the shop (the module rejects other domains);
- Task frequency: hour, day, month and day of the week.
The module works in hours. You can't schedule a task every 5 minutes through it; if a module really needs that, put its URL straight into the server's cron with the schedule you want.
Tasks worth scheduling, and where to find their URL:
| Task | Where the URL is | Good frequency |
|---|---|---|
| Sitemap (Google sitemap module) | Configure on the gsitemap module |
once a day, at night |
| Search index | Shop Parameters → Search, Indexing section | once a day |
| Waybill statuses, if the courier's module has a cron | the courier module's configuration page | once an hour |
| Reports, price comparison feeds | that module's page | as needed |
Step 5: check that it runs
In the Cron tasks manager list, the Last execution column shows when each task last ran. If it's still empty after an hour:
- Open the execution URL in your browser. If you see "Invalid token", the token was copied wrong or you reinstalled the module (reinstalling generates a new one).
- Check the cron's output. A
curlthat can't reach the site (wrong DNS, expired certificate) writes the error there. - If you recently moved the shop to another domain or renamed the admin folder, the old URL is no longer valid. Take the new line from Configure.
Frequently asked questions
Can I use php instead of curl?
Not for module URLs: they go through PrestaShop's controllers and need a web request. Symfony console commands (php bin/console ...) can run directly with php, but that's separate from module cron.
Do cron tasks slow the shop down?
Each call runs only the tasks that are due. A sitemap for a big catalog can take minutes, so schedule it at night and not in the same hour as your backup. For other causes of slowness see slow PrestaShop back office.
Cron for PrestaShop on AYT
AYT has no SSH, and scheduled tasks are created on the panel's Cron Jobs page: the schedule in separate fields (or from a list of common settings), the command and a maximum run time. That's where you paste the curl line from Cron tasks manager. You install and manage the PrestaShop shop from the PrestaShop Toolkit, which also has a Commands page for bin/console commands, with a 120-second limit. If you need to clear the cache after a change, see how to clear the PrestaShop cache. Plans are on the hosting page.
