Add cache system for configs, rulesets and subscriptions

Add proxy_config option for downloading external config files.
Optimize codes.
This commit is contained in:
Tindy X
2020-02-19 22:14:18 +08:00
parent 8bbc163d08
commit 19742630f5
8 changed files with 143 additions and 36 deletions

View File

@@ -36,8 +36,9 @@ quan_rule_base=base/quan.conf
;Quantumult X config base used by the generator, supports local files/URL
quanx_rule_base=base/quanx.conf
;Proxy used to download rulesets or subscriptions, set to NONE or empty to disable it, set to SYSTEM to use system proxy.
;Proxy used to download configs, rulesets or subscriptions, set to NONE or empty to disable it, set to SYSTEM to use system proxy.
;Accept cURL-supported proxies (http:// https:// socks4a:// socks5://)
proxy_config=SYSTEM
proxy_ruleset=SYSTEM
proxy_subscription=NONE
@@ -154,3 +155,7 @@ port=25500
print_debug_info=false
max_pending_connections=10240
max_concurrent_threads=4
enable_cache=false
cache_subscription=60
cache_config=300
cache_ruleset=21600