Search squid archive

cache_object localhost info dosent clear when cache is wiped

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi group,

I've got a cluster of three squid/3.0.STABLE12 servers that are running
as reverse proxy accelerators. We periodically update the content that
the squid servers source and are using the below script to accomplish
the task. The problem is that when we perform this task, the
cache_object://localhost/info is not reset. Is there a process to
clearing the data in this item as well?


--BlastCache.sh--
#!/bin/bash
#
# File:   BlastCache.sh
# Author: Andrew Woodward

wdir=/usr/local/squid


cdir=${wdir}/var/cache
mkdir ${cdir}/junk

killall -9 RunCache

${wdir}/sbin/squid -k shutdown
sleep 2s
killall -9 squid
sleep 2s

mv ${cdir}/?? swap.state* ${cdir}/junk

${wdir}/sbin/squid -z
${wdir}/bin/RunCache &

rm -rf ${cdir}/junk

sleep 3s
ls -sl ${wdir}/var/cache/swap.state
ps axl | grep squid
-------EOF-------


Andrew Woodward



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux