Joomla memcached - Quickly give your site insane speed with memcache

One of the fixations we've had over the recent past, is a fixation to make our site load insanely fast - and that's when we first heard about Joomla memcache(d). You've probably seen our "How I got my website to load in 1.29 seconds" article, if you haven't then you really should ;) We've recently switched to the SiteGround after hearing so much raving reviews about them. Let's just say that we have never seen such a great hosting service. By default the loading site was cut down by an impressive 2 seconds (with no other changes). That means they set their servers up very very nicely. But there's more to make you site fast - Joomla memcached.

 

Besides the default setup, SiteGround offer three levels of cache to make your site faster

Level 1: Static Cache - caches your static content (similar to what a CDN would do)

Level 2: Dynamic Cache - It creates copies of your website's dynamic content and stores them in the server RAM. This requires their own custom plugin to interface well with your site and the server it's hosted on

Level 3: The Joomla Memcached technology speeds up database calls, API calls and page rendering by storing data and objects in memory to reduce the number of times a database is queried. SiteGround is the only company that applies the memcached algorithm on a shared server environment.

How to Activate Joomla Memcached

The great thing is that Joomla supports memcache by default, but since this requires some tweaking, you won't find it under the normal cache settings in the Global Configuration. Joomla 3 memcached settings are hidden and need to be activated by doing a small tweak in the configuration.php file.

 Default Joomla Cache Settings

 

To enable Memcache you'll need to edit your Configuration.php and edit the following two variables:

public $caching = '0';
public $cache_handler = 'file';

to:

public $caching = '2';
public $cache_handler = 'memcache';
public $memcache_server_host = 'localhost';
public $memcache_server_port = 'xxxxxx'

 where xxxxxx is a port specified by your hosting server.

Joomla Memcache settings

Joomla memcache settings

 

 

 

Once this is done, your Joomla is now memcached and you should see another improvement in the loading time of your website. This is particularly helpful for busy websites. Make sure you check whether your site supports memcached - if they don't, you should give SiteGround a look ;)

 

Let's help you manage your Joomla better

joomla

Free Joomla tips ebook button

One more thing...

Do you have friends or a Facebook group who you think would find this useful? Share this with them and then let me know what they think.

Want to supercharge your website?

 
Our website loads FAST ... just 1.29 seconds. We're hosted on FAST InMotion VPS servers We want YOUR website to be fast too, so we've gotten you an exclusive deal - 47% OFF for DART Creations friends + FREE domain! Check it out NOW!