[Solved] LiteSpeed Cache + Joomla

Joomla is a fairly populate content management system (CMS). It is a common sense that most Web sites have content that does not change frequently should use caching techniques to reduce load to server and improve end user experience. Joomla itself has three levels of caching:

1. Page caching
2. View caching
3. Module caching

Page caching is the one that significantly improves performance (8 times faster). However, the cache result (in html format) is saved as a php file in docroot/cache/page directory. IOW, php is still invoked to serve these pages.

To work with Joomla (cached for guest visitor only), LSWS cache relies on a cookie token to differentiate whether a user is logged in or not. However, Joomla assigns cookie to any user (guest and logged in). cookie value changes as same session go through different stage (such as before login, after login, logout and log back in, etc) while cookie key stays the same. The easy way is the create desired cookie in joomla by modifying its code (small modification in login/logout stage). Login/Logout functions are located in the standard user component (docroot/component/com_user/controller.php).

Explanation of the added rules:
1. Only cache for Head or Get requests
2. Cache for guest user (no loginuser cookie)
3. Cache request to any URLs like ((\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$) but excluding /index.php, and /administrator/*
4. Cache for 300 seconds

Note:
1. Joomla's login form (index.php) is not cache friendly (contain a security token) and has to be excluded from being cached.
2. /administrator/* is the Joomla backend. No need to be cached.

Hello Scot, I've created the plugin for 1.5, 2.5 and 3.x. Now I don't use ls cache anymore, so I can't test the plugin. I hope to use lscache again in future and I hope in a better support for dynamic applications (for example virtuemart for guest, contact forms, or responsive template via mobile joomla stop working)

I don't know of anyone making a plugin for Joomla! right now (though I can think of at least one company that might be working on it). I do know of a couple hosting companies that are working on Drupal and/or WordPress plugins, so keep you eyes peeled. We are working on a plugin for Magento right now. We may continue working on plugins for other applications after we have released the Magento plugin, but we will first have to survey the market and decide about other priorities.