Christian Knoke <[EMAIL PROTECTED]> writes:
> On Thu, Nov 06, 2003 at 11:25:32AM +0800, Dan Jacobson wrote:
> > >>>>> "A" == Andrew M Bishop <[EMAIL PROTECTED]> writes:
>
> > A> You could always run two WWWOFFLE proxies on the same computer as
> > A> described in the FAQ. One of them goes online and the other one
> > A> doesn't. Then you can use http://localhost:9080/http/www.foo/bar.html
> > A> to see the cached version as-if you were offline.
>
> Can I use the same cache with the two instances of wwwoffle?
> If yes, anything to consider before I do so?
Yes you can use the same cache for two instances of WWWOFFLE. There
is no central database of files in the cache and all file locking is
performed by lockfiles. This allows WWWOFFLE to run with multiple
processes even for a single server and by extension multiple servers
would work just as well.
In a default setup there would only be one cache directory which means
that there is only one copy of the outgoing directory and the
lasttime, prevtime, lastout and prevout index direcctories. If only
one of the two WWWOFFLE instances is ever used for fetching and the
other one is permanently offline then I can't think of a problem with
this setup.
If you ever did want to have two outgoing directories then you could
only do it by creating two cache directories that would share the http
and ftp contents with symbolic links but then they would have separate
outgoing and index directories.
--
Andrew.
----------------------------------------------------------------------
Andrew M. Bishop [EMAIL PROTECTED]
http://www.gedanken.demon.co.uk/
WWWOFFLE users page:
http://www.gedanken.demon.co.uk/wwwoffle/version-2.8/user.html