Slow website [website took too long to respond]

For about two months I have been experiencing very slow speed on my website
When I enter the website for the first time in a period of about 5 hours or more, the site becomes slow and does not respond quickly and sometimes gives me errors such as
{website took too long to respond}
This not only appeared with me, but also with my clients

Whereas when I visit my website through the ip address directly it always works fine and fast

How can I solve this problem

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.