Re: [squid-users] Re: Does Changing Cache_dir location require a "Rebuild" of the cache?

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 04 Sep 2013 16:41:24 +1200

On 4/09/2013 12:50 p.m., HillTopsGM wrote:
> I am basically up and running.
>
> I don't necessarily want to make anyone re-read everything prior to this so
> I will briefly explain the setup:
>
> Squid3 running on partition 1
> Files being cached on partition 5
>
> If my server gets screwed by an update and I reload everything in partition
> 1,
> before I turn squid ON, if I were to run
>
> sudo squid3 -z
>
> Will it recognize and re-index and use the cached files that are already
> there?

In short: yes. *provided* you update your squid.conf to point at the new
cache_dir path.

squid -z verifies and rebuilds the directory structures *only*.
Existence (or not) and corruption check of particular files and the
content of swap.state journal is performed by the main Squid process
after restart.

FWIW: I am trying to find time to put together a useful cache management
tool based around the features in squid squid -z and squidpurge tool.
But that is going very slowly, if anyone is able to sponsor the
development (even in part with PayPal donation) I am seeking development
sponsorship for this project.

Amos
Received on Wed Sep 04 2013 - 04:41:32 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 04 2013 - 12:00:05 MDT