Re: [squid-users] object not being cached

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 09 Jul 2013 02:08:19 +1200

On 9/07/2013 12:57 a.m., Alexandre Chappaz wrote:
> ###########################
> # FONCTIONNEMENT DU CACHE #
> ###########################
>
> #definition du cache
> #8Gb of shared rock cache, for 32Ko objects max
> cache_dir rock /var/cache/squid/mem/ 8192 max-size=32768
>
> if ${process_number} =1
> cache_dir aufs /var/cache/squid/mem/W${process_number} 3000 16 256
> min-size=32768 max-size=131072
> cache_dir aufs /var/cache/squid/W${process_number} 9000 16 256 min-size=131072
> endif
> if ${process_number} =2
> cache_dir aufs /var/cache/squid/mem/W${process_number} 3000 16 256
> min-size=32768 max-size=131072
> cache_dir aufs /var/cache/squid/W${process_number} 9000 16 256 min-size=131072
> endif
> if ${process_number} =3
> cache_dir aufs /var/cache/squid/mem/W${process_number} 3000 16 256
> min-size=32768 max-size=131072
> cache_dir aufs /var/cache/squid/W${process_number} 9000 16 256 min-size=131072
> endif
> if ${process_number} =4
> cache_dir aufs /var/cache/squid/mem/W${process_number} 3000 16 256
> min-size=32768 max-size=131072
> cache_dir aufs /var/cache/squid/W${process_number} 9000 16 256 min-size=131072
> endif
>
> # pages dynamiques non mises en cache
> acl QUERY urlpath_regex cgi-bin \? \.fcgi \.cgi \.pl \.php3 \.asp \.php \.do
> no_cache deny QUERY
>
> #Rafraichissement du cache
> memory_cache_shared on
> cache_mem 4 GB
> max_filedesc 65535
> maximum_object_size 512 MB
> maximum_object_size_in_memory 2048 KB

You may be hitting a strange issue we have not yet figured out properly.
In the recent Squid these limits need to be placed *above* the cache_dir
lines or the default maximum objects the cache_dir will store is 4MB.

Amos
Received on Mon Jul 08 2013 - 14:08:26 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 09 2013 - 12:00:13 MDT