Speed up your Joomla! sites using XCache

by · January 10, 2013


In our last post, we introduced WP Super Cache to speed up CMS WordPress and now we will show you how to speed up loading of your sites powered by CMS Joomla!

Our test of XCache was made on mid-sized site powered by Joomla! 2.5 with about 50 subpages, template with several CSS and a few JavaScripts. Before XCache activation, load time was about 1 second, when we switched on XCache, load time was decreased to approximately 0,3 second.

Decreased load time after XCache activation

Decreased load time after XCache activation

FastCGI and XCache

Recently we posted a guide dedicated to speed up your site using FastCGI combined with XCache. XCache stores part of your site into server cache that is then loaded from there, and this is what speeds up your site.

How to:

  1. Turn on FastCGI in Control panel, section Apache and PHP settings
  2. Add XCache settings in your configuration file, according to PHP version
  3. PHP restart in Control panel, section Apache and PHP settings
  4. XCache activation in Joomla! 2.5 (quite similar for Joomla! 1.5)

In Joomla! administration set the following:

A.) in section Web > Global Configuration > System
Cache: ON – Progressive caching
Cache Handler: XCache
Cache Time: (choose cache duration in minutes, in our case 10080 minutes, equivalent of 7 days)

XCache activation in Joomla! 2.5 administration

XCache activation in Joomla! 2.5 administration

B.) Activate plugin “System – Cache” in the Plug-in Manager.
The option “Use Browser Caching” select only if your site is static and does not change content.

Activation of the plugin System – Cache

Activation of the plugin System – Cache


Incompatible Joomla! 2.5 with FastCGI + XCache and PHP 5.4

If your Joomla! 2.5 runs on our servers on PHP 5.4, after XCache activation you may encounter following warning on your site:

Notice: Array to string conversion in …/public_html/libraries/joomla/cache/cache.php on line 584

In this case either disable error reporting in the administration of Joomla! (Web > Global Configuration > Server > Error reporting: None) or change PHP lower version (this can be done in Control panel in section Apache and PHP settings)

Do not forget

After turning on any caching method, you should “click through” your web site to create caching files that will be displayed to visitors of your web site. The same way will be these caching files created after the period you set in Joomla! administration expired.

Speed up Joomla! administration (2.5 / 3.0)

For faster work in administrative section of Joomla! 2.5 / 3.0 we recommend using free (with limited functionality) AJAX toogler plugin, which through AJAX technology ensures faster actions, such as change of order and status of modules, plugins, articles etc. without the need for loading the whole site. Plugin is not compatible with all components but in the plugin settings it is possible to choose the ones for which it should not be used.

The way this plugin works can be seen on the picture above. After activation of plugin “System – cache”, the classic message is not shown but the notification of change of the plugin status appears in the top left corner in the lightbox avoiding reload of the entire site.

Share and Enjoy

  • Facebook
  • Twitter
  • Digg
  • StumbleUpon
  • RSS
  • Add to favorites

Category: Manuals, Web hosting

Tag: , ,