WordPress: disable WP‑Cron and set a real cron job in Plesk
- 20.02.2026 00:58
-
- automation
- performance
- plesk
- wordpress
By default, WordPress uses WP‑Cron – a “pseudo cron” that runs when someone visits your website. This can be unreliable on low‑traffic sites and can add overhead on busy sites.
A better approach is:
- Disable WP‑Cron inside WordPress.
- Run
wp-cron.phpon a schedule using Plesk Scheduled Tasks.
Step 1 – Disable WP‑Cron in wp-config.php
- Open
wp-config.phpin your WordPress root folder (usuallyhttpdocs). - Add this line above the comment “That’s all, stop editing!”:
define('DISABLE_WP_CRON', true);
Step 2 – Create a Scheduled Task in Plesk
- Log in to Plesk (via My.GARMTECH).
- Open Websites & Domains → Scheduled Tasks.
- Click Add Task.
- Set the schedule (a common option is every 5 minutes).
- Use this command (replace the domain):
curl -sS https://your-domain.tld/wp-cron.php?doing_wp_cron > /dev/null 2>&1
Alternative: if your server has wget:
wget -q -O - https://your-domain.tld/wp-cron.php?doing_wp_cron > /dev/null 2>&1
Step 3 – Verify that scheduled events run
- Wait for the next scheduled run.
- Check that WordPress scheduled actions (publishing, backups, plugin tasks) start working normally.
Notes
- If your site is password‑protected, the cron URL may require authentication. In that case, remove protection for
wp-cron.phpor use a safe allowlist method. - Do not schedule it too frequently if you have a very heavy site. For most sites, every 5–15 minutes is enough.
Related Articles
Comments
Add Comment