Bug #3144

web proxy does not cache objects bigger than 4Mb

Added by Filippo Carletti over 6 years ago. Updated about 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-squid
Target version:v6.6
Security class: Resolution:
Affected version:v6.6 NEEDINFO:No

Description

Even if set to a value higher than the default of 4096 Kb, the web proxy (squid) cache doesn't store objects bigger than 4Mb.
Original bug report:
http://bugs.squid-cache.org/show_bug.cgi?id=3830

Workaround: move cache_dir directive in squid.conf below max_object_size

Associated revisions

Revision 8d2ff1aa
Added by Filippo Carletti over 6 years ago

squid.conf: move cache_dir below maximum_object_size. Refs #3144

History

#1 Updated by Filippo Carletti over 6 years ago

  • Status changed from NEW to TRIAGED
  • Assignee set to Filippo Carletti
  • Target version set to v6.6
  • % Done changed from 0 to 20

#2 Updated by Filippo Carletti over 6 years ago

  • Status changed from TRIAGED to ON_DEV
  • % Done changed from 20 to 30

#3 Updated by Filippo Carletti over 6 years ago

  • Subject changed from web proxy does not cache object bigger than 4Mb to web proxy does not cache objects bigger than 4Mb
  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

Fixed in nethserver-squid-1.3.4-1.1.g8d2ff1a.ns6.noarch.rpm.

Test case:
update a system where squid cache is enabled and check squid.conf:

# Enable disk cache
minimum_object_size 2 KB
maximum_object_size 8192 KB
cache_dir aufs /var/spool/squid 100 16 256

#4 Updated by Filippo Carletti over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

#5 Updated by Filippo Carletti over 6 years ago

  • Assignee deleted (Filippo Carletti)

#6 Updated by Giacomo Sanchietti about 6 years ago

  • Assignee set to Giacomo Sanchietti

#7 Updated by Giacomo Sanchietti about 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90

Differences for squid.conf:

[root@server host-to-net.conf]# diff -u /etc/squid/squid.conf.pre /etc/squid/squid.conf
--- /etc/squid/squid.conf.pre    2015-05-12 13:56:01.152849053 +0000
+++ /etc/squid/squid.conf    2015-05-12 13:56:18.779696817 +0000
@@ -84,9 +84,9 @@
 cache_mem 256 MB

 # Enable disk cache
-cache_dir aufs /var/spool/squid 100 16 256
 minimum_object_size 2 KB
 maximum_object_size 4096 KB
+cache_dir aufs /var/spool/squid 100 16 256

 # Leave coredumps in the first cache dir

#8 Updated by Giacomo Sanchietti about 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-squid-1.3.5-1.ns6.noarch.rpm

Also available in: Atom PDF