is using concrete5.
It's been working quite well for the last couple of months up until today, Tues August 27.
Now, main page and other pages which are very light, are very slow to load. up to 20 seconds, or getting these errors:
In a browser:
Unable to connect to database.
A database error occurred while processing this request.
< Back to Home
when editing in concrete 5 main page:
An unexpected error occurred. Unable to get permission key for write< Back to Home
Thank you for your question. I checked into your website, and the failed database connection seems to be related to a momentary spike in traffic.
In a shared server setting, other website's can affect the performance of the server, but our Systems Team actively monitors the servers 24/7. This means when they notice an issue, they will correct it, usually by suspending the account abusing the resources.
I also noticed there is a lot of javascripts loading on the main page specifically for youtube videos. Javascripts load from top to bottom of page: each time it hits a javascript, it stops loading the page until the javascript completes (it must fetch the video from youtube), then continues.
This can cause a delay in page loading.
If you have any further questions, feel free to post them below.
Thank you,
-John-Paul
Thanks for the fast reply, John Paul.
I was seeing serious slowdown problems for at least a couple of hours on aug 27, 2013.
I'm still seeing intermittent very slow page loads, including on pages that have almost no content. Can you please check if other sites (not mine) on that server, are getting traffic spikes?
Tx for tip re main page javascripts.
Would that affect other pages that have very little content?
I think i have caching on. i'll double check.
What are the pros and cons of caching?
e.g. will users see the most updated content?
(I update daily on the main page.)
At this time, I am not seeing any server problems (spikes, or heavy load), and no one else on the server is reporting a similar issue.
All the pages I checked loaded reasonably fast, except for the ones with a lot of youtube videos, or the javascript ads (http://static.getclicky.com/js).
The slow loading javascripts would only affect pages they are on, but I saw many javascripts on most of your pages.
I would be happy to look at the slow loading pages, can you provide a link to some specific pages that are loading slowly?
Here is some information on caching: In PHP when a visitor requests a page, it is generated at that time. Caching can help you by saving the commonly accessed pages so they are ready when a visitor to your site requests them.
This was taken from the article on caching I previously linked to. The article also explains how to set how often the cache rebuilds, in minutes.
For example you could set it to rebuild the cache every 240 minutes or every 4 hours.
Keep in mind you can always .clear cache manually in Concrete5, after an update.
If you have any further questions, feel free to post them below.
Thank you,
I checked your server again, and I am not seeing any server problems (spikes, or heavy load), and no one else on the server is reporting a similar issue.
All these correspondences boil down to 2 things that need to be addressed: caching, and limiting javascripts.
I checked both of your Concrete5 websites, and enabling caching will absolutely help, especially for the website: mmmexplore.com. Here is a link to a Concrete5 guide I wrote on how to work with speed and cache settings.
The front page for http://Marijuana.Ca is extremely long, and "there are a lot of javascripts loading on the main page specifically for youtube videos (40 youtube videos load). Javascripts load from top to bottom of page: each time it hits a javascript, it stops loading the page until the javascript completes (it must fetch the video from youtube), then continues."
This absolutely causes a delay in page loading.
If you have any further questions, feel free to post them below.
Thank you,