This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi all,
I recently made a new website using OctoberCMS, and I really love it. The only (critical) problem I have is that sometimes the site is very very slow. Especially the first time you load the page it sometimes takes like 12-15 seconds to load.
The url of the site is new.ldgsoixante-neuf.nl. I know it's hard to tell what's going wrong when not having the source code of the site etc, but is there something obvious I'm doing wrong which might result in this enormous long loading times?
Thanks in advance, Jelle
Loaded quickly for me, ( i am accessing from Sydney, Australia).
Are you on a shared host?
It may definitely be something with your host.
We use Amazon Elastic Beanstalk (EBS) PHP. It is very simple to get started and has a fair price in my opinion.
What do u exactly mean by "Especially the first time you load the page"? Just on the very first page load of the website in general or everytime you clear your browsers cache and revisit the site? It might also be that you've got a very huge image database, that would mean a lot of caching through the first instance (if no special CDN like akamai or imgix isn't used) . As others mentioned it, it also might be your Hoster depending on what kind of "first time of loading a page" you mean.
@othon20008586 You mean a EC2 Instance with a EBS Storage, PHP can't run on EBS alone ;-)
Thanks for the reactions. I wasn't able to respond till now because I was on holiday last week.
It is on a shared host ( bhosted.nl). With "Especially the first time you load the page" I mean the first time you load the first page after closing and opening the browser, but also when you visit the page, close the tab, wait some time (like not directly visiting it again) and then visit it. I don't delete my whole browser cache when closing the browser (chrome & safari).
When visiting the page: Imgur (very long load time)
When visiting the page again immediately: Imgur ('short' load time)
What you can see is that there is like 10 seconds Waiting (TTFB) time. This has to do with connection to the server, right?
It is also true that the image database is quite large, but on the home page the only images loaded are the logo (27kb), the pattern for the menu (5,6kb), the background pattern for the menu (4,0kb) and the two banner images (118+203kb), so loading the images shouldn't be the problem I think?
Last updated
Hi Jelle,
What was the problem with the host? I have the same problem. Very slow on first load.
Hi info13179,
In retrospect I don't know what the problem was with my poster (i was using shared-hosting). To solve the problem I justed switched to another hoster.
info13179 said:
Hi Jelle,
What was the problem with the host? I have the same problem. Very slow on first load.
Typically, on shared hosting, the resources dedicated to your particular host are based on the demand and the number of requests. If your site is not being accessed, the server will slowly reduce the number of resources dedicated to your site and re-assign them to other sites with current traffic.
Usually, the cheaper the hosting package, the more sites they try to cram on one server and the smaller the minimum resources will be. So basically, if you have a rather inactive website on these types of hosts your website will almost always load slowly the first time.
Godaddy is the worst of all when it comes to this, from my experience.
Hi,
I am running a website on my local dev computer. I turn out that the response even for a very simple page takes avg 1-2 seconds to load (just the server response time). My dev configuration laptop:
- PHP 7
- Apache 2.2
- MySQL 5.6
- Ubuntu 16.04
Could you please do the same benchmark like what I did on your own computer? Just create a simple page with a Hello World text and measure to see how long it takes to response the page back from the server side. 1-2 seconds is a big number for me. I cannot accept the backend response time over 800 ms
Website Speed is one of the important factor search ranking. you can not avoid it. Can try Gtmetrix https://gtmetrix.com or its other alternatives fix all of the website error.. try https://alternativeso.com/gtmetrix
I have the same problem, usually the website loads very fast but sometimes, when I haven't visited for a while, the first time the page loads takes minutes. It's not a host problem because it also happens when working locally. My suspicion is that it happens when generating the twig cache.
1-13 of 13