Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
    
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

1 Answer 1

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$

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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