Search squid archive

Re: Two questions about stored objects

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/07/2015 5:17 a.m., Sebastian Goicochea wrote:
> Hello everyone, I have been making some modifications (size, object max
> size) in some cache dirs and I have a couple of questions:
> 
> 1) If I lower de maximum object size for a certain cache_dir and
> reconfigure (I did a squid -z without squid running), what happens to
> the files that are no longer in the cache_dir size limits but are
> already stored?

No. It only affects new objects being stored to disk.

There is one caveat however. Sometimes objects get "promoted" from disk
to memory caching. When those cycle back to disk they will not go to the
original cache_dir. Which may leave you with an un-deleted but nolonger
indexed file on disk.

> 
> 2) If I change the min and max times in refresh_patterns, what happens
> to the objects that are already stored? Where they stored with the "old"
> times or are they going to be re-evaluated the next time they are
> requested by a user?

Have no effect except on active traffic. That does include "active" in
the sense of being saved to disk. But not objects just sitting there
already.


Overall, if you change settings like these the state does slowly
migrates to the new values as cached content expires. But that is not
fast, could take minutes or weeks depending on your initial state.

To make immediate administrative changes to on-disk AUFS/UFS/diskd cache
content use the squid-purge tool which is bundled with recent Squid
versions.

Amos

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux