Concrete5 Suggestions
Permalink
I have a hosting company and have always used Wordpress for my CMS. Recently I transferred a client to his own Virtual Dedicated Server running a Concrete site where he also pays me to make changes to his site. I had never worked with the CMS until this point and instantly I had fallen in love. I started making my own theme in a sub-directory for my hosting company but as I am adding content and running test using Pingdom Tools I notice that one day it is fast and another its twice as slow. The slowest part is the core files loading and I read somewhere that copying the header_required.php from the elements folder into my local theme elements folder and adding
if ($u->isRegistered()) {
$this->addHeaderItem($html->css('ccm.base.css'), 'CORE');
$this->addHeaderItem($html->javascript('jquery.js'), 'CORE');
$this->addHeaderItem($html->javascript('ccm.base.js', false, true), 'CORE');
}
would help speed this up as it is not pulling the info unless a user is logged in. I am not seeing a difference and is still being called so maybe the location was not correct. My question is, is there any server enhancements that should be done? I currently use a cdn from Amazon and is there a way to implement this? Any suggestions would be grateful. I would like to use this for my hosting site but unless I can speed it up it will not do me any good.
if ($u->isRegistered()) {
$this->addHeaderItem($html->css('ccm.base.css'), 'CORE');
$this->addHeaderItem($html->javascript('jquery.js'), 'CORE');
$this->addHeaderItem($html->javascript('ccm.base.js', false, true), 'CORE');
}
would help speed this up as it is not pulling the info unless a user is logged in. I am not seeing a difference and is still being called so maybe the location was not correct. My question is, is there any server enhancements that should be done? I currently use a cdn from Amazon and is there a way to implement this? Any suggestions would be grateful. I would like to use this for my hosting site but unless I can speed it up it will not do me any good.
For all the talk of CDNs and compressing CSS that happens on these forums, those are all after the initial page is loaded, but in my experience the slowdown (if/when you're seeing ~10 second page load times) is due to the rendering of the HTML, and has relatively little to do with CDNs, etc. For example, the code you pasted will cause the various libraries to not be loaded for all users... but that has nothing to do with initial page time (which may or may not be your issue).
In my experience, the biggest bottlenecks are the file system and MySQL database. More the latter than the former. Hosting the db on localhost is one of the best things to do. Similarly, if you're for some reason using an NFS mount for files (specifically tmp), that would cause problems. Though... most people start to see performance issues at hundreds of pages, not a clean site.
With all that being said, you should be running the most recent version of c5 and, if relevant, have turned on full page caching. I didn't mention this earlier because FPC isn't at all relevant for many sites, but if you're doing something non-enterprisey and brochure-y, it may be perfect for you.