I mentioned in the last few days, that when I open the site for the first time from 2-3 hours, It loads very slow. I tried to deactivate some plugins like firewall, security, caching plugins and etc., but result is the same - it works when I open it frequently.
I have one more site here and right now I noticed the same thing. I’m relatively new here and my site isn’t advertised yet. Still under construction.
Is it a global problem with the hosting or? Has it happened to you?
WordPress’ background process system usually means that the first request after a few hours of inactivity will take a bit longer because it still needs to run some pending tasks. This is just how WordPress works, there isn’t much you can do about this.
It’s true that deactivating plugins can help. But if there is one plugin that is quite heavy on the background processes but is also crucial to your site, there isn’t much you can do about it.
This can happen to any WordPress site on any hosting.
Yea, thank you so much for your answer. I mean that. But I didn’t know that there was this thin moment like that.
Before ticking your answer as a solution, are there any opportunities to reduce loading time for first time visits? Any optimizations are possible or it is a waste of time?
I tried. Last night I installed one plugin which allows additional cron jobs setup and set once hourly 2 items in it (wp_version_check and wp_https_detection). No result. In the morning I installed a different plugin with option to create a custom cron job, but I don’t think I was able to set it up.
The last attemp: I have a database optimizer plugin, which allows to set schedule optimizations. Changed it from once weekly to once hourly, but again without result - right now, when I visit the site (for the first time from 2-3 hours), it takes ~1-2 minutes to start loading its contents.
I meant a cron job on a hosting account which loads WordPress every hour so WordPress can run it’s background tasks without a visitor being present.
Decreasing the load time of the WordPress cron runner cannot be fixed by adding more stuff to the WordPress cron runner.
I don’t see any reason to believe that this is a database issue. And again, you won’t fix the issue of slow WordPress background jobs by adding more background jobs. Which is exactly what you’re doing by adding these optimization plugins.
Remember, many issues with sites are not fixed by adding more plugins.
Just tell the cron job in the control panel to load your homepage every hour or so. Also, remove the cron jobs from Wordpress, unless you need them.
Thanks!