Feature #10913
closedAllow disabling caching in Squid completly
100%
Description
We use Squid as a proxy to audit access to websites (or reject as needed). We disabled the disk cache and set the memory cache to 1 MB but in the end we'd like squid to not ever cache anything. Sadly this cannot be done via any options since the squid package add cache allow all by default: https://github.com/pfsense/FreeBSD-ports/blob/93a86eaa5c7697a176464ab20c0ceabf065e36c1/www/pfSense-pkg-squid/files/usr/local/pkg/squid.inc#L1650
Would it be possible to move this directive down to the end of the configuration file (this way an earlier cache deny all via custom acls would work) or add a toggle to the GUI to allow disabling it?
Updated by Viktor Gurov over 4 years ago
Updated by Jim Pingle over 4 years ago
- Status changed from New to Pull Request Review
Updated by Renato Botelho over 4 years ago
- Status changed from Pull Request Review to Feedback
- Assignee set to Renato Botelho
- % Done changed from 0 to 100
PR has been merged. Thanks!
Updated by Azamat Khakimyanov over 4 years ago
- Status changed from Feedback to Resolved
Tested on 2.4.5_p1 and on 2.5.0-DEVELOPMENT (built on Tue Oct 20 07:03:54 EDT 2020)
There is an option to disable Squid caching completely now.
When I checked it I saw that file /var/squid/cache/swap.state stopped updating and it stayed the same size. If I uncheck it swap.state size starts to increase according to the amount of web pages I open.
This feature request can be marked RESOLVED.