cache_replacement_policy

cache_replacement_policy

This directive controls the replacement policy for Squid's disk cache. Version 2.5 offers three different replacement policies: least recently used (LRU), greedy dual-size frequency (GDSF), and least frequently used with dynamic aging (LFUDA). Note that the keywords (lru, GDSF, etc.) are case-sensitive! See Section 7.5 for additional information.

Syntax

cache_replacement_policy lru

cache_replacement_policy heap GDSF|LFUDA|LRU

Default

cache_replacement_policy lru

Example

cache_replacement_policy heap GDSF

Related

memory_replacement_policy, cache_dir



    Appendix A. Config File Reference