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:27]
Jackson Zhang [I set rewrite rules according to the wiki, but why my admin pages being cached?]
litespeed_wiki:cache:no-plugin-craft [2018/05/15 20:39] (current)
Jackson Zhang old revision restored (2017/04/14 13:28)
Line 58: Line 58:
 ==== 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 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.  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>​+  ##########​ Begin - Litespeed cache 
 +  <​IfModule LiteSpeed>​
    ​RewriteEngine On    ​RewriteEngine On
    ​CacheDisable public /    ​CacheDisable public /
Line 66: Line 67:
    ​RewriteCond %{ORG_REQ_URI} !/​index.php/​admin ​   ​    ​RewriteCond %{ORG_REQ_URI} !/​index.php/​admin ​   ​
    ​RewriteRule .* - [E=Cache-Control:​max-age=120]    ​RewriteRule .* - [E=Cache-Control:​max-age=120]
- </​IfModule>​ +  ​</​IfModule>​ 
- ##########​ End - Litespeed cache+  ########## End - Litespeed cache
  
 Note: The "​CacheDisable public /" directive is used to help protect against globally enabled caching. The Rewrite rules will enable 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:27
  • by Jackson Zhang