I have litespeed on my server and am trying to use the cache system. I have followed the wiki instructions.

And have this in my Magento .htaccess

RewriteRule (.*\.php)?$ - [L,E=Cache-Control:max-age=120]

The cache is working as I'm getting the X-response hit in the header but I can't find a way to exclude the admin area from the cache.

  • Could you clarify whether the question is about getting the cache to work or excluding the admin area from the cache? – Ladadadada Feb 22 '13 at 15:01
  • @Ladadadada , sorry for delay in replying ... Yes the cache is working but can't exclued admin area ...? – Ledgemonkey Feb 24 '13 at 9:50

Add these lines before your RewriteRule:

RewriteCond %{ORG_REQ_URI} !^/admin/
RewriteCond %{ORG_REQ_URI} !^/admin$
RewriteCond %{ORG_REQ_URI} !^/index.php/admin/
RewriteCond %{ORG_REQ_URI} !^/index.php/admin$

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.