0

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.

Ladadadada
  • 26,337
  • 7
  • 59
  • 90
Ledgemonkey
  • 103
  • 5
  • 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 09:50

1 Answers1

0

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$

Toby
  • 1