update cache pages
This commit is contained in:
@@ -43,7 +43,6 @@ The specific principle of optimistic caching can refer to (RFC 8767) (https://ww
|
||||
|
||||
The process for SmartDNS to handle expired cache is as follows:
|
||||
|
||||
|
||||
```mermaid
|
||||
|
||||
%%{init: {'theme':'forest'}}%%
|
||||
@@ -107,3 +106,11 @@ Therefore, it is a good practice to enable expired cache in the main scenario.
|
||||
```shell
|
||||
domain-rules /example.com/ -no-cache
|
||||
```
|
||||
|
||||
## Set cache save interval
|
||||
|
||||
1. To avoid losing the cache due to system or process restart, you can configure SmartDNS to periodically save the cache file.
|
||||
|
||||
```shell
|
||||
cache-checkpoint-time 86400
|
||||
```
|
||||
|
||||
@@ -26,7 +26,7 @@ hide:
|
||||
|rr-ttl-reply-max|Domain name Minimum Reply TTL|Remote query result|number greater than 0|rr-ttl-reply-max 60
|
||||
|rr-ttl-max|Domain name Maximum TTL|Remote query result|number greater than 0|rr-ttl-max 600
|
||||
|max-reply-ip-num|Maximum number of IPs returned to the client|8|number of IPs, 1~16 |max-reply-ip-num 1
|
||||
|log-level|log level|error|fatal,error,warn,notice,info,debug|log-level error
|
||||
|log-level|log level|error|off,fatal,error,warn,notice,info,debug|log-level error
|
||||
|log-file|log path|/var/log/<br />smartdns/<br />smartdns.log|File Pah|log-file /var/log/smartdns/smartdns.log
|
||||
|log-size|log size|128K|number+K,M,G|log-size 128K
|
||||
|log-num|archived log number|2 for openwrt, 8 for other system|Integer, 0 means turn off the log|log-num 2
|
||||
|
||||
Reference in New Issue
Block a user