On 12/05/2013 7:04 p.m., paramkrish wrote:
Additional info:
Squid Cache: Version 3.2.3
configure options: '--prefix=/usr/local/squid' '--enable-ssl'
'--enable-removal-policies=lru heap' '--enable-ltdl-convenience'
squid.conf :
cache_mgr engh...@domain.com
cache_effective_user squid
cache_effective_group squid
visible_hostname wikid-dev.domain.com
http_port 80 accel defaultsite=wikid-dev.domain.com vhost
cache_peer 10.56.102.92 parent 443 0 login=PASS name=engwikiweb1dev
sourcehash ssl sslflags=DONT_VERIFY_PEER
cache_peer 10.56.102.93 parent 443 0 login=PASS name=engwikiweb2dev
sourcehash ssl sslflags=DONT_VERIFY_PEER
acl wikid-dev dstdomain wikid-dev.domain.com
cache_peer_access engwikiweb1dev allow wikid-dev
#cache_peer_access engwikiweb2dev allow wikid-dev
cache_peer_access engwikiweb1dev allow all
#cache_peer_access engwikiweb2dev allow all
never_direct allow wikid-dev
acl LUCENE url_regex lucene
cache deny LUCENE
http_access allow wikid-dev
http_access allow all
cache_replacement_policy heap LRU
memory_replacement_policy heap LRU
cache_dir ufs /wikiweb-dev/squid-cache/var/engwikilb1/cache 2048 16 64
cache_swap_low 90
cache_swap_high 95
cache_mem 1024 MB
maximum_object_size_in_memory 4096 KB
maximum_object_size 32768 KB
logfile_rotate 3
forwarded_for truncate
cache_store_log /wikiweb-dev/squid-cache/var/engwikilb1/logs/cache_store.log
logformat squid %ts %06tr %>a %Ss/%03>Hs %<st %rm %ru %un %Sh/%<A %mt
refresh_pattern -i \.css\?.*$ 1440 50% 2880 reload-into-ims
refresh_pattern -i \.js\?.*$ 1440 50% 2880 reload-into-ims
refresh_pattern -i \.css$ 1440 50% 2880 reload-into-ims
refresh_pattern -i \.js$ 1440 50% 2880 reload-into-ims
refresh_pattern (/skins/) 1440 50% 2880 reload-into-ims
refresh_pattern -i gen=css 1440 50% 2880 reload-into-ims
refresh_pattern -i gen=js 1440 50% 2880 reload-into-ims
refresh_pattern . 0 0% 0
I would like if there is anything wrong in my config that makes not to cache
all the pages as i see only TCP_MISS statements in my access.log
That . refresh_pattern is making Squid discard all content with
incomplete or missing expiry and age information headers. It could be
related to your problem.The default refresh_pattern we publish with
Squid sets a 3 day caching period for those objects (max fields set to
4320 minutes).
It could also be some weird caching bugs we had in the early 3.2
releases, your version is early enough to be an affected one. Upgrade to
3.3.4 will show whether that was the problem or not.
Amos