Re: [squid-users] Does squid try to update is cache automatically

This is a discussion on Re: [squid-users] Does squid try to update is cache automatically within the Squid Users forums, part of the Web Server and Related Forums category; Hello, Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG wrote: > > Does squid try to go out and update webpages that users frequently ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2004
OTR Comm
 
Posts: n/a
Default Re: [squid-users] Does squid try to update is cache automatically

Hello,

Jim_Brouse/PYT@PASCUAYAQUITRIBE.ORG wrote:
>
> Does squid try to go out and update webpages that users frequently visit,
> like if I visit www.kernel.org in the morning will it keep checking whether
> it has an up to date page even if a user is not requesting that site or
> does squid only update it cache when users request a particular site?


Squid does not automatically check for update pages, but you can do this
with wget in a cron job.

You can put a list of urls in a file and then use the
'--input-file=file' or '-i file' option with wget to. For example
http://www.kernel.org

Other options to look at:

-r - recursive
--timestamping
-p or --page-requisites
-nd or --no-directories - Do not create a hierarchy of directories when
retrieving recursively
-nH or --no-host-directories
-q - quiet download
--tries=number - Set retries number

man wget shows all the options.

Then set http_proxy = http://1.2.3.4:port_num/ in wgetrc to whatever
your squid server is and run wget from cron job whenever you want during
the day. Squid will get updated.

I am not an expert on wget, but I do use it to load/update Squid.


Murrah Boswell
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:43 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0