Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2015 01:05:45 -0700 (MST)
From:      timp <timp87@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: www/squid's cache dir
Message-ID:  <1437033945253-6025665.post@n5.nabble.com>
In-Reply-To: <CAKOb=YbD1d0VP=1UEgvOF-S51ojp8Hk1ET1KPX=KzF2owVW88A@mail.gmail.com>
References:  <CAAoTqfsvewoSr07eS3pECW=nWp-cjMpR2_WDQ8BBmGt1wFNwaQ@mail.gmail.com> <20150714205428.367d2be0@gumby.homeunix.com> <1436935179854-6025395.post@n5.nabble.com> <20150715120726.35a59c3e@gumby.homeunix.com> <CAAoTqftUUgKpua7EKvZJSZKYCTsDAdREQM-=j2OF%2BAV0m_-CPQ@mail.gmail.com> <20150715150155.59642307@gumby.homeunix.com> <1436970780679-6025493.post@n5.nabble.com> <CAKOb=YbD1d0VP=1UEgvOF-S51ojp8Hk1ET1KPX=KzF2owVW88A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Nick!

> FWIW, I have the squid port installed on hundreds of systems, however I do 
> not use the port defaults and have logs and cache on a separate filesystem 
> mounted in /squid (i.e., /squid/logs, /squid/cache). In my opinion, it 
> makes sense for the port to default to using /var/squid/cache and 
> /var/squid/logs, which I believe is already the case? 

No, it's not the case for the log dir.

> In my opinion using /var/cache/squid/... does not make any sense. I'm not 
> exactly sure the intention of /var/cache - my systems only use it for 
> pkg(8), but it seems intended more for a temporary application cache in
> the 
> traditional sense and not so much for things like a web cache that need to 
> be much larger. 
>
> In reality, I would think that most users of squid with a reasonably sized 
> cache-dir would need to relocate squid cache and logs to a filesystem of 
> larger size than the average /var, or mount /var/squid elsewhere in which 
> case they would likely want /var/squid of the /var filesystem to be empty. 


Ok, a small squid installation can live with /var/squid/cache or
/var/cache/squid, it doesn't matter. If user wants to use squid extensively
he/she does the additional work manually. That's what I understood.

Just looked into ubuntu and centos - they use /var/spool/squid as a default
cache dir.

So as a conclusion I'd got rid of /var/squid/logs.
Cache is in /var/squid/cache and logs are in /var/log/squid like right now.



--
View this message in context: http://freebsd.1045724.n5.nabble.com/www-squid-s-cache-dir-tp6025127p6025665.html
Sent from the freebsd-ports mailing list archive at Nabble.com.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1437033945253-6025665.post>