HI Does anyone know how to implement the offline cache mode in squid? I tried adding offline_mode on in the squid.conf file, but it didn't work - of course, nothing is that simple :-) One extra question: Is it possible to set a cron job to retrieve web pages or update already cached web pages? Thanks Paul
On Wed, 28 Feb 2001, Paul Evans wrote:
HI One extra question: Is it possible to set a cron job to retrieve web pages or update already cached web pages?
One non-squid thought that I have is try wget to update pages [you could then dump them into an apache dir!] you could set cron to: cd /usr/local/httpd && wget -r -k www.blah.com the "-r" is recursive and the "-k" is to translate non-relative to relative addresses, i.e a link to http://www.blah.com/foo/bar.html gets changed to "/foo/bar.html" so that it doesn't attempt an online website access. You could then access the site via: http://localhost/www.blah.com Hope this helps in some way... if not then sorry for wasting bandwidth =o) -- -=[Tigersden Internet Services]=- ************COMING SOON************* -=[For All Your Internet Needs]=- * HTTP://www.tigersden.demon.co.uk * -=[P.G.P. Public Key Available]=- ************COMING SOON************* -=[ !!Powered by SuSE Linux!! ]=- My eyes are 20-20, but my brain isn't too good at interpreting what they see =o)
On Wed, Feb 28, Paul Evans wrote:
Does anyone know how to implement the offline cache mode in squid? I tried adding offline_mode on in the squid.conf file, but it didn't work - of course, nothing is that simple :-)
One extra question: Is it possible to set a cron job to retrieve web pages or update already cached web pages?
Don't know how to do that with Squid, but you should have a look at wwwoffle, it is specially tailored for that purpose. And it can be combined with Squid as well. LenZ -- ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH mailto:grimmer@suse.de Schanzaeckerstr. 10 http://www.suse.de/~grimmer/ 90443 Nuernberg, Germany Pretend to spank me - I'm a pseudo-masochist.
participants (3)
-
Lenz Grimmer
-
Paul Evans
-
The Purple Tiger