Clear instructions to SPEED your website up

Permalink 2 users found helpful
Concrete5 is a great CMS - it achieves everything I need for my website clients AND MORE - the only trade-off for all the functionality is how resource intensive it is.

There is a way to speed things up a tad though.

This guide follows on from the thread I started a number of weeks ago about using APC Cache (and some of my cache test results).

Note: This involves modifying the Concrete5 core, my guess is updates will require this process to be redone

Note2: The method described here will use a fair chunk of memory - to be honest, typical $2 a year shared hosting from Dreamhost is not the best partner for Concrete5.

Note3: Thanks Mose for a lot of the help on this one.

------

Requirements:
APC 3.1.3 installed on your server
Latest version of PHP installed ideally
Decent amount of server memory

------

1) Under the config folder, find site.php and add this:
define('CACHE_ID', BASE_URL . DIR_REL);

and
define('CACHE_LIBRARY', 'apc');

2) Edit <root>/concrete/libraries/cache.php and change these lines near the top

public function key($type, $id) { 
                return md5($type . $id); 
        }


to

public function key($type, $id) { 
                return md5(CACHE_ID . $type . $id); 
        }

3) Check your site is all go - assuming everything is installed correctly and the code above has been actioned, it should be speeding along a lot more than before.

This is not the ultimate solution - I'm yet to hear feedback from the Concrete5 Core team - their feedback appreciated, but it has resulted in some good speed increases on some of our basic sites.

myFullFlavour
 
adamjohnson replied on at Permalink Reply
adamjohnson
Much easier than sifting through 80+ posts on the other thread.

Question: Is this process only doable for one C5 site or can it be done for multiples in a shared hosting environment?

Finally, maybe this could be made into an article in the Documentation of this site. Seems like the next logical step.
ScottC replied on at Permalink Reply
ScottC
Yeah basically you are saying my secret word to get something is the base_url and the dir_rel to fetch something from cache from this site.

appending DIR_BASE on your key/CACHE_ID couldn't hurt either, you'd have to try to screw that one up.

-Scott
myFullFlavour replied on at Permalink Reply
myFullFlavour
Doable on multiple sites on one server.
synlag replied on at Permalink Reply
synlag
Thx for this little howto.

I recommened to also use the audit tool that comes in webkit browsers to check a site for performance.

Thanks to the safari guys :)

Greets
--ron