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
litespeed_wiki:cache:no-plugin-craft [2017/04/14 13:15]
Jackson Zhang [Deleting Outdated Cache Files Using A Cron Job]
litespeed_wiki:cache:no-plugin-craft [2018/05/15 20:39] (current)
Jackson Zhang old revision restored (2017/04/14 13:28)
Line 57: Line 57:
 ===== Troubleshooting ===== ===== Troubleshooting =====
 ==== I set rewrite rules according to the wiki, but why my admin pages being cached? ==== ==== I set rewrite rules according to the wiki, but why my admin pages being cached? ====
- The lscache could be incorrect ​enabled on server level globally. You can either correct the wrong lscache ​enabled ​setting to "not set" or "​no",​ or just disable global setting for a particular virtual host only in .htaccess first before the rewrite rules. + The lscache could be incorrectly ​enabled on server level globally. You can either correct the wrong lscache setting ​"​Enable Public Cache" ​to "not set" or "​no" ​according to [[litespeed_wiki:​cache:​common_installation#​web_server_configuration|this recommendations]], or just disable global setting for a particular virtual host in .htaccess first before the rewrite rules.
  
 +  ########## Begin - Litespeed cache
 +  <​IfModule LiteSpeed>​
 +   ​RewriteEngine On
 +   ​CacheDisable public /
 +   ​RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
 +   ​RewriteCond %{ORG_REQ_URI} !/admin
 +   ​RewriteCond %{ORG_REQ_URI} !/​index.php/​admin ​   ​
 +   ​RewriteRule .* - [E=Cache-Control:​max-age=120]
 +  </​IfModule>​
 +  ########## End - Litespeed cache
  
 +Note: The "​CacheDisable public /" directive is used to help protect against globally enabled caching. The Rewrite rules will enable cache.
  
  • Admin
  • Last modified: 2017/04/14 13:15
  • by Jackson Zhang