So I have a problem with my site that is strange. I have noticed that sometimes it takes ages to load. Like 15 second and other time it takes just a few milliseconds. What I noticed is that seems like the site needs to be opened once and then for a while it loads fast everywere. I noticed this because once the page loaded at the same tike on two machine that opened the site at different time and also because i did some speed test like GTmetrix and they gave me 95%. So what i am wondering if is it actually possible that the site needs to be called once an then for a while is called fast. I am using wordpres and dream host. Thanks in advance.
[ad_2]
WordPress runs a series of tasks called “crons” based on user traffic hitting the site. If it hasn’t been hit in a while, it can take some time to run these. One workaround is to have some sort of bot on a schedule hitting the page every so often.
Generally that means you have a slow site and/or server – it’s Dreamhost so that’s not surprising.
It’s fast on subsequent loads because the cache has been “warmed” (filled).
Get better hosting. Shared hosting is typically trash.
I don’t believe this has anything to do with cron jobs.
What you’ve described is caching. When the website is uncached (first load) you’re loading the resources directly from your server which is much slower. After the website is saved in the cache you’re loading it from the cache file which is much faster.
Can you provide your URL so I can take a look?
Use CDN to make your website faster.