0 votes
We have a pretty active household with devices and technology and have multiple devices wired/wireless that stream. Also game consoles. I've been having issues in the past few months and they've been driving me crazy and I think i stumbled over the answer accidentally. I've been having great difficulty with services like Pandora, Amazon Prime, Netflix, etc and end up rebooting my ClearOS firewall and my AP but they never fully clear. I use ClearOS Web Proxy in transparent mode and noticed the Reset Cache button today while trying to put this problem to bed. Clicked the button and all the issues vanished. My cache size i believe is default for ClearOS, 10gb. I jumped it up to 50gb as i have the space. I guess the question is, was this the issue? It seems like it was. The second question is there any way to set a cron job or the like to clear this cache overnight? I don't want to have this reoccur and forget the solution.
Saturday, October 05 2019, 12:31 AM
Share this post:

Accepted Answer

Saturday, October 05 2019, 08:24 AM - #Permalink
1 votes
The proxy in transparent mode is pretty useless these days as a lot of traffic has switched to https.

You can add a little script to a file in /etc/cron.daily with something like:
systemctl stop squid
rm -rf /var/spool/squid/0*
systemctl start squid
I am not exactly how much the Clear Cache button deletes. Perhaps better then the rm command would be something like
find /var/spool/squid -mtime +10 -type f -delete > /dev/null 2>&1
This would remove files only, more than 10 days old.

Alternatively have a look at the app documentation (the slanted book icon) and run squid cacheless. It is a one line change to the conf file.
The reply is currently minimized Show
Responses (1)
  • Accepted Answer

    Saturday, October 05 2019, 09:32 PM - #Permalink
    0 votes
    Switched to Non-Transparent without Auth and set up the above cronjob. I feel that should resolve my issue. Thanks for the direction.
    The reply is currently minimized Show
Your Reply