Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:cache:no-plugin-joomla [2017/05/05 20:54]
Jackson Zhang [Verify Cache Setup]
litespeed_wiki:cache:no-plugin-joomla [2018/03/22 14:34]
Lisa Clarke [LSCache + Joomla (<3.x) Configuration] Proofreading
Line 1: Line 1:
-====== LSCache + Joomla Configuration ======+====== LSCache + Joomla ​(<​3.x) ​Configuration ====== 
 + 
 +**NOTE: [[litespeed_wiki:​cache:​lscjoomla|There is a module now]]. If you are running Joomla 3.x or later, please use the module. If you are running Joomla 2.x or lower, you can still use the rewrite-rule-based LSCache as instructed in this wiki. **
  
 LSCache, similar to Varnish cache, is a simpler and more efficient page caching solution built-in to LiteSpeed Web Server. When used in conjunction with Joomla, you can expect significant performance gains with a quick and easy setup. Cache management is also made significantly easier and more flexible. While the LiteSpeed cache plugin for Joomla is still in development,​ rewrite rules can still be used to customize LSCache'​s behavior. LSCache, similar to Varnish cache, is a simpler and more efficient page caching solution built-in to LiteSpeed Web Server. When used in conjunction with Joomla, you can expect significant performance gains with a quick and easy setup. Cache management is also made significantly easier and more flexible. While the LiteSpeed cache plugin for Joomla is still in development,​ rewrite rules can still be used to customize LSCache'​s behavior.
Line 62: Line 64:
 ===== Deleting Outdated Cache Files Using A Cron Job ===== ===== Deleting Outdated Cache Files Using A Cron Job =====
  
-**Note:** LSWS will now delete expired ​cache files automatically,​ making this step optional. A cron job can still be set up to help ensure that the cache works as expected, clearing out pages that may have been misconfigured to have a very long TTL. +Please refer to [[litespeed_wiki:cache:no-plugin-setup-guidline#​deleting_outdated_cache_files_using_a_cron_job|this wiki]].
- +
-A cron job should be set to clear out old cache files that are past the set **Time To Live (TTL)**.  +
- +
-To do this, you should run the crontab either as the root user or as the cache owner for self management. +
- +
-<​code>​crontab ​-e</​code>​ +
- +
-The virtual host cache root directory is normally located in **/​home/​$USER/​lscache** for shared hosting users or **/​tmp/​diskspace** for dedicated servers. +
- +
-<​code>​*/​10 * * * * root find /​virtualhost/​cache/​root/​directory/ ​-type f -mmin +8 -delete 2>/​dev/​null</​code>​ +
- +
-**Note:** This cron job deletes cached files that are more than 8 minutes old every 10 minutes. Since the cache TTL is set at 120 seconds (2 minutes), it is safe to delete these files as they are way past their TTL.+
  • Admin
  • Last modified: 2020/09/17 19:49
  • by Lisa Clarke