Search squid archive

Squid 4.2 : caching is not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi team,

I have created directories using squid -z and then triggered squid -f /etc/squid/squid.conf -NYCd 1. Find (1) debug info below. And below (2) are the cache directory and squid-config. 

(1) - debug info:
squidclient -h localhost cache_object://localhost/ mgr:objects >>> this was showing the entry when the download was going on and disappeared after the download complete(~290MB) on the browser. When I checked the du of cache directory, it is intact with 200KB
---------------------------------------------------------------------------
bash-4.4# squid -v
Squid Cache: Version 4.2
Service Name: squid
This binary uses LibreSSL 2.7.4. For legal restrictions on distribution see https://www.openssl.org/source/license.html
configure options:  '--build=x86_64-alpine-linux-musl' '--host=x86_64-alpine-linux-musl' '--prefix=/usr' '--datadir=/usr/share/squid' '--sysconfdir=/etc/squid' '--libexecdir=/usr/lib/squid' '--localstatedir=/var' '--with-logdir=/var/log/squid' '--disable-strict-error-checking' '--disable-arch-native' '--enable-removal-policies=lru,heap' '--enable-auth-digest' '--enable-auth-basic=getpwnam,NCSA,SMB,SMB_LM,RADIUS' '--enable-epoll' '--enable-external-acl-helpers=file_userip,unix_group,wbinfo_group,session' '--enable-auth-ntlm=fake,SMB_LM' '--enable-auth-negotiate=kerberos,wrapper' '--disable-mit' '--enable-heimdal' '--enable-delay-pools' '--enable-openssl' '--enable-ssl-crtd' '--enable-linux-netfilter' '--enable-ident-lookups' '--enable-useragent-log' '--enable-cache-digests' '--enable-referer-log' '--enable-async-io' '--enable-truncate' '--enable-arp-acl' '--enable-htcp' '--enable-carp' '--enable-poll' '--enable-follow-x-forwarded-for' '--with-large-files' '--with-default-user=squid' '--with-openssl' 'build_alias=x86_64-alpine-linux-musl' 'host_alias=x86_64-alpine-linux-musl' 'CC=gcc' 'CFLAGS=-Os -fomit-frame-pointer' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=-Os -fomit-frame-pointer' 'CXXFLAGS=-Os -fomit-frame-pointer'


(2) - cache directory and squid-config
---------------------------------------------------------------------------  
bash-4.4# ls /var/spool/squid/cache
00          02          04          06          08          0A          0C          0E          swap.state
01          03          05          07          09          0B          0D          0F
bash-4.4#
..
cache allow all
strip_query_terms off
..
cache_dir ufs /var/spool/squid/cache 2000 16 256
maximum_object_size 300 MB
..
range_offset_limit -1
..
url_rewrite_access allow all
url_rewrite_program  /usr/bin/python /usr/share/proxypass.py

http_access deny all
...
always_direct deny all

(a) Please let me know what am missing to enable cache. 
(b) Also "squidclient -h localhost cache_object://localhost/ mgr:objects" hope this command will show the entry even after caching.


Thanks,
Hari
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux