you need to stop squid and do a squid -z
and then start squid again.
by using the rm -rf ...
you are erasing the cache dirs which is done by using the squid -z
Eliezer
On 20/05/2012 05:49, Beto Moreno wrote:
> Sorry, for all the list:
>
> stop squid.
> remove cache dir rm -rf cache/
> mkdir cache
> chown proxy:proxy cache/
> squid -z
> echo " "> access.log
> squid start
>
> Done, is correct?
>
> Sat, May 19, 2012 at 7:48 PM, Beto Moreno<pamrtj_at_gmail.com> wrote:
>> stop squid.
>> remove cache dir rm -rf cache/
>> mkdir cache
>> chown proxy:proxy cache/
>> squid -z
>> echo " "> access.log
>> squid start
>>
>> Done, is correct?
>>
>> On Fri, May 18, 2012 at 5:57 AM, Eliezer Croitoru<eliezer_at_ngtech.co.il> wrote:
>>> On 18/05/2012 08:12, Beto Moreno wrote:
>>>>
>>>> Hi.
>>>>
>>>> I'm working on some squid settings, I have follow the instructions to
>>>> clean my cache, but once I clean my cache, change the settings I'm
>>>> working on and start again my test, the next run and I see this log in
>>>> my access.log:
>>>>
>>>> TCP_SWAPFAIL_MISS
>>>>
>>>> The book say:
>>>>
>>>> Squid found a valid copy of the requested resource but failed to load
>>>> it from disk. Squid then
>>>> sent the request to the origin server as though it were a cache miss.
>>>>
>>>> I understand that, squid found something...where I had clean my cache?
>>>>
>>>> Or I need to restart my server?(I had restart squid without issue)
>>>>
>>>> What I want is to run squid with some settings, them get my info,
>>>> change my settings, clean my cache and again run the test.
>>>>
>>>> I was thinking that in my next run I will found only TCP_MISS.
>>>>
>>>> Is the right way to start a fresh cache or I need to some else?
>>>>
>>>> Squid 2.7.x, thanks!!!
>>>
>>> and how do you clean the cache?
>>>
>>> Eliezer
>>>
>>> --
>>> Eliezer Croitoru
>>> https://www1.ngtech.co.il
>>> IT consulting for Nonprofit organizations
>>> eliezer<at> ngtech.co.il
-- Eliezer Croitoru https://www1.ngtech.co.il IT consulting for Nonprofit organizations eliezer <at> ngtech.co.ilReceived on Sun May 20 2012 - 03:06:27 MDT
This archive was generated by hypermail 2.2.0 : Sun May 20 2012 - 12:00:03 MDT