RE: [squid-users] Accelerator not Caching for specified times.

From: AJ Lemke <aj.lemke@dont-contact.us>
Date: Thu, 19 Jun 2003 09:13:08 -0500

Just following up on this. I have not been able to solve this. I have
tried changing the cache time to lower values and the site caches for
the specified time. I start bringing the times up greater than 4 hours
and caching becomes irratic. I have it specified for 2 day as of right
now. It seems to caches for about 24-30 hours. There seems to be no
pattern to to the cache times.

Any help would be appreciated.

AJ

 
-----Original Message-----
From: AJ Lemke [mailto:aj.lemke@securitylabs.com]
Sent: Tuesday, June 10, 2003 11:14 AM
To: squid-users@squid-cache.org
Subject: [squid-users] Accelerator not Caching for specified times.

Hello List,

I have a Acceleration mode squid server. I have noticed recently that
the squid box is not caching for the specified amount of time. I have a
site that gets changed very little so I have set the expiration times
very high(1 month). I go to the page where I have set up a dynamic
timestamp and the site is cached. I go back say 8 hours later and the
site has refreshed now showing the current time. I refresh the page and
it is cached, showing the previous timestamp. I can refresh the page in
say an hour and the old timestamp will still be there. This site is a
combination between static html pages and dynamic Cold Fusion pages. I
have included the pertinent information below. If you see anything that
looks misconfigured or is not working in the config file please let me
know.

Thanks everyone for your help.

AJ

Squid Version:
Squid 2.4-Stable7

Squid Config File:
http_port 80

#Memory Allocation
cache_mem 64 MB
maximum_object_size 16384 KB
ftp_user squid_ftp@somewhere.net
request_header_max_size 10 KB
request_body_max_size 25 MB

#Directories for the log files
cache_dir ufs /var/spool/squid/cache 2048 16 256
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log

#Refresh Pattern Layout
# www.someUrl1.com 4 hours
refresh_pattern -i www\.someUrl1\.com 240 20% 1440
ignore-reload
refresh_pattern -i someUrl1\.com 240 20% 1440
ignore-reload

# www.someUrl2.com 4 hours
refresh_pattern -i www\.someUrl2\.com 240 20% 1440
ignore-reload
refresh_pattern -i someUrl2\.com 240 20% 1440
ignore-reload

# www.someUrl3.org 1 month
refresh_pattern -i www\.someUrl3\.org 43200 20% 1440
ignore-reload
refresh_pattern -i someUrl3\.org 43200 20% 1440
ignore-reload

# www.someUrl4.com 4 horus
refresh_pattern -i www\.someUrl4\.com 240 20% 1440
ignore-reload

# Default pattern 8 hours
refresh_pattern . 480
20% 1440 ignore-reload

#replacement_policy LFUDA
quick_abort_min 256 KB
quick_abort_max 512 KB
quick_abort_pct 0 KB
pconn_timeout 240 second
shutdown_lifetime 10 second

# Access control List
acl localhost src 127.0.0.1
acl purge method PURGE
acl manager proto cache_object
acl all src 0.0.0.0/0.0.0.0
acl accelerated_servers dst xx.xxx.xxx.82 xx.xxx.xxx.123 xx.xxx.xxx.97
xx.xxx.xxx.120 acl CONNECT method CONNECT
 

# Access Area
http_access deny CONNECT all
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access allow accelerated_servers
http_access deny all

# Http Acceleration Area
cache_mgr admin@SomeURL.com
cachemgr_passwd MyPassword all

# User for Squid
cache_effective_user cache
cache_effective_group cache

#Visible Hostname
visible_hostname Squid1.SomeURL.com
httpd_accel_host squid1.SomeURL.com
httpd_accel_uses_host_header on
#httpd_accel_with_proxy off
httpd_accel_with_proxy on
#httpd_accel_host virtual
httpd_accel_port 80
forwarded_for on

# Logging Information
#buffered_logs on
log_mime_hdrs on
emulate_httpd_log on
#debug_options All,1 33,2

half_closed_clients off
#unlinkd_program /usr/local/squid/purge/purge
Received on Thu Jun 19 2003 - 08:13:21 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:17:26 MST