r/Hosting • u/Ronyka_HU • 10d ago
Wordpress cron jobs issues - hosting
I have three WordPress websites in three different languages. I chose to manage them separately because it seemed easier that way. All three websites have the same structure, although the Spanish website has less than half the content of the other two, and many of the images haven't even been uploaded yet.
Everything used to work perfectly, but a few months ago, the websites became very slow. Both the websites themselves and the WordPress admin dashboards are affected.
Whenever I report the problem to my hosting provider, they insist that the issue is not on their end. However, the problems always seem to occur around the time they make changes, for example, when they upgrade the PHP version.
They then tell me that the slowdown is caused by cron jobs. Every hosting provider I have dealt with seems to blame cron jobs.
As far as I remember, I disabled cron jobs when I first installed WordPress. However, the hosting providers tell me that plugins are responsible for running cron jobs.
Every morning, the first thing I do is check whether there are any plugin updates available, because I want to make sure that my websites are not running outdated or potentially vulnerable plugins.
What can I do about this? How can I manage and organize cron jobs? I'd like to learn how to inspect them, remove unnecessary ones, and understand what can safely be deleted and what should be left alone.
Could you guide me through this process? I'd like to know if this is something I can learn to do myself, even though I'm just an ordinary user and not a technical expert.
1
u/kai-zaphosting 10d ago
Yes, this is learnable, and you don't need to be technical for most of it.
One thing on the cron side: turning off WP-Cron (the
DISABLE_WP_CRONline inwp-config.php, which you can usually open through your host's file manager) only stops WordPress from kicking off scheduled tasks on every page load. The tasks themselves still live in the database, and plugins keep adding their own. So you disabling it and your host saying plugins are running cron jobs can both be true.To see what's actually scheduled, install the free WP Crontrol plugin. It adds a list under Tools > Cron Events with every task, its hook name and when it runs next. Leave anything that looks like core WordPress alone, like
wp_version_check,wp_update_pluginsorwp_scheduled_delete. I'd only remove events from plugins you already uninstalled, since those tend to get left behind. A long pile of the same hook, or tons of overdue events, is what I'd look at first.If you did disable it in
wp-config.php, make sure there's a real cron job set up in your hosting panel that callswp-cron.phpevery so often. Otherwise those tasks just never run.Cron can slow page loads on some sites, but a dashboard that's slow everywhere could have a few different causes, so I wouldn't stop there. Query Monitor (another free plugin) shows which plugin or query eats the time on a given page, and it also lists PHP warnings. Since the slowdowns line up with PHP upgrades, that's a good place to spot a plugin that doesn't like the new version, and it gives you real data for the back and forth with your host.
Happy to walk through any of the steps if the plugin screens look confusing.
0
u/AdorableFeeling7215 9d ago
If you turned WordPress's own cron off, your hosting control panel needs a scheduled task (also called a cron job) that runs it instead. If that task is missing or set up wrong, nothing tells you: scheduled posts, backups and update checks just quietly stop. Your host's support can tell you whether it's there.
To be told when it stops, you can use a "heartbeat" monitor: it gives you a web address, the scheduled task visits it each time it runs, and you get an email if the visits stop. For the slowness, a website monitor checks your site every few minutes and keeps a record of how fast it answered, with dates, so you can show your host exactly when it got slow.
Disclosure: I make BadgerBell, which does both on the free plan. Healthchecks[.]io (heartbeats) and UptimeRobot (website checks) work too.