как настроить что бы время жизни кеша было 1 неделя, и что бы старые кешированные файлы, добустим которым больше 2 недель чтоб они удалялись, ато я слышал бывают казусы когда на сайете поменялась картинка а все грузят ее со сквида
а посмотреть все опции сквида в squid.conf религия не позволяет ?
# TAG: reference_age
# As a part of normal operation, Squid performs Least Recently
# Used removal of cached objects. The LRU age for removal is
# computed dynamically, based on the amount of disk space in
# use. The dynamic value can be seen in the Cache Manager 'info'
# output.
#
# The 'reference_age' parameter defines the maximum LRU age. For
# example, setting reference_age to '1 week' will cause objects
# to be removed if they have not been accessed for a week or
# more. The default value is one year.
#
# Specify a number here, followed by units of time. For example:
# 1 week
# 3.5 days
# 4 months
# 2.2 hours
#
# NOTE: this parameter is not used when using the enhanced
# replacement policies, GDSH or LFUDA.
#
#Default:
#reference_age 1 week
спецом глянул: Squid Cache: Version 2.5.STABLE12-20051025
# cat squid.conf.default |grep reference_age
а в ответ тишина...а вот на http://www.squid-cache.org/Doc/FAQ/FAQ_long.html точно есть..
Usage reference_age time-units
Description
As a part of normal operation, Squid performs Least Recently Used removal of cached objects. The LRU age for removal is computed dynamically, based on the amount of disk space in use. The dynamic value can be seen in the Cache Manager 'info' output.
The 'reference_age' parameter defines the maximum LRU age
This parameter is not used when using the enhanced replacement policies, GDSH or LFUDA.
в сквид 2.4 этот параметр точно есть ! возможно в 2.5 и убрали поскольку
время жизни в кэше определяется алгоритмом , возьми да включи эту опцию если у тебя алгоритм LRU и проверь .