Compare commits

..
1 Commits
+3 -1
View File
@@ -1649,7 +1649,9 @@ def capture():
settings = load_capture_settings()
cache_cfg = settings.get("cache", DEFAULT_CACHE_CONFIG)
retry_cfg = settings.get("retry", DEFAULT_RETRY_CONFIG)
force_refresh = bool(data.get("refresh") or data.get("force"))
force_refresh = bool(data.get("refresh") or data.get("force")) or \
str(request.args.get("refresh") or "").lower() in ("1", "true", "yes") or \
str(request.args.get("force") or "").lower() in ("1", "true", "yes")
# per-request 缓存参数:cache_ttl_seconds=本次缓存时效(秒, -1=永久, 覆盖全局)cache=false / no_cache=true=本次禁用缓存
no_cache = data.get("cache") is False or str(data.get("no_cache")).lower() in ("true", "1", "yes")
try: