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!
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.
- Turn on FastCGI in Control panel, section Apache and PHP settings
- Add XCache settings in your configuration file, according to PHP version
- PHP restart in Control panel, section Apache and PHP settings
- 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)
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.
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.