Squid 配置指令 cache_swap_log
可用版本:
此指令在 Squid 的 v8 版本中不可用。
此指令在 Squid 的 v7 版本中不可用。
此指令在 Squid 的 v6 版本中不可用。
此指令在 Squid 的 v5 版本中不可用。
对于 v5 之前的旧版本,请参阅以上链接页面。
配置详情
| 选项名称 | cache_swap_log |
|---|---|
| 被替换为 | cache_swap_state |
| 要求 | |
| 默认值 | none |
| 建议配置 |
|
Location for the cache "swap.state" file. This log file holds
the metadata of objects saved on disk. It is used to rebuild
the cache during startup. Normally this file resides in each
'cache_dir' directory, but you may specify an alternate
pathname here. Note you must give a full filename, not just
a directory. Since this is the index for the whole object
list you CANNOT periodically rotate it!
If %s can be used in the file name it will be replaced with a
a representation of the cache_dir name where each / is replaced
with '.'. This is needed to allow adding/removing cache_dir
lines when cache_swap_log is being used.
If have more than one 'cache_dir', and %s is not used in the name
these swap logs will have names such as:
cache_swap_log.00
cache_swap_log.01
cache_swap_log.02
The numbered extension (which is added automatically)
corresponds to the order of the 'cache_dir' lines in this
configuration file. If you change the order of the 'cache_dir'
lines in this file, these log files will NOT correspond to
the correct 'cache_dir' entry (unless you manually rename
them). We recommend you do NOT use this option. It is
better to keep these log files in each 'cache_dir' directory.
|
|
