[squid-users] squid won't cache some files with errors " storeCreate: no swapdirs for..."

Alex Rousskov rousskov at measurement-factory.com
Tue Nov 24 19:04:56 UTC 2020


On 11/24/20 10:55 AM, RANQUET Guillaume - externe wrote:

> cache_dir ... max-size=500MB

Unfortunately, the cache_dir max-size parameter does not understand size
units (a missing feature). Squid also does not tell you that you have
misconfigured it (a bug). I have not tested whether that problem is the
reason behind "no swapdirs for e..." decision, but there is a very good
chance that it is -- 500MB gets misinterpreted as 500 bytes.

The correct way to express a 500MB size limit is

    cache_dir rock /data 3000 max-size=524288000


HTH,

Alex.


More information about the squid-users mailing list