Project

General

Profile

Feature #10913

Allow disabling caching in Squid completly

Added by Florian Apolloner about 1 month ago. Updated 9 days ago.

Status:
Resolved
Priority:
Normal
Category:
Squid
Target version:
-
Start date:
09/18/2020
Due date:
% Done:

100%

Estimated time:

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?

History

#2 Updated by Jim Pingle about 1 month ago

  • Status changed from New to Pull Request Review

#3 Updated by Renato Botelho about 1 month 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!

#4 Updated by Azamat Khakimyanov 9 days 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.

Also available in: Atom PDF