Name

cache_replacement_policy

Synopsis

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

Get Squid: The Definitive Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.