Hi
workaround solution below
I’m having the same kind of issue with my WordPress sites:
Initial site load is very slow (20-30+ seconds), after a certain period of no activity on the site. Looks like the ‘reset’ time is about 1 hour.
It seems to be the TTFB has a lot of waiting time. The actual load of the content is no problem.
I haven’t been able to identify the cause of the issue yet. Even with a completely empty installation of WordPress (standard theme, no plugins), the load speed is terribly slow.
Communication with my site hosting hasn’t found the cause and solution for it. The hosting company assures me there is nothing wrong with their method of hosting, and no issues on my multiple domain-accounts with them.
We did find a workaround solution:
Make a Cronjob that visits the site periodically. So every 15 or 30 minutes. This would ensure there is always site activity, to keep the site speed acceptable.
We made this Cronjob on my cpanel account: “wget -q -O- (website url)” for each 30 minutes.
Hope this helps, but i also hope we’ll be able to identify the real cause and find a solution for that, instead of a workaround.
cheers!