View Single Post
  #3  
Old 02-15-2013, 05:35 AM
Ledgemonkey Ledgemonkey is offline
Member
 
Join Date: Feb 2013
Posts: 11
Question testing cache

Thanks for the reply:

I have this in htttp.conf:

LoadModule cache_module modules/mod_cache.so
<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot /tmp/diskcache/
CacheEnable disk /
</IfModule>
</IfModule>

I have files in tmp/diskcache/ 0/ 1/ 2/ 3/ a/ b/ c/ d/ e/ etc.

my LS cache settings are :

Storage Path:tmp/diskcache
Max Object Size: 128K

Cache Policy
Enable Cache: No
Cache Expire Time (seconds): Not Set
Cache Request with Query String: No
Cache Request with Cookie: No
Cache Response with Cookie: No
Ignore Request Cache-Control: No
Ignore Response Cache-Control: No
Enable Private Cache: Yes
Private Cache Expire Time (seconds): 120

I have this in my Magento .htaccess (which is not in root directory)

RewriteEngine on
RewriteRule cacheable/(.*\.php)?$ - [L,E=cache-control:max-age=120]

Getting this from response header..?
HTTP/1.1 200 OK
Date: Fri, 15 Feb 2013 13:27:44 GMT
Server: LiteSpeed
Connection: Keep-Alive
Keep-Alive: timeout=5, max=100
X-Powered-By: PHP/5.3.21
Set-Cookie: frontend=72ed1ce898e1dec005b44904ba6abc6a; expires=Fri, 15-Feb-2013 14:27:42 GMT; path=/; domain=www.staging.shushushops.co.uk; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache

Content-Type: text/html; charset=UTF-8
Vary: User-Agent
Vary: User-Agent

Any ideas where I'm going wrong...?

Many thanks...
Reply With Quote