fix: --no-cache now also skips cache writing
This commit is contained in:
1 parent
8001c3f7e8
commit
5a44f2ba34
1 file changed
+1
-1
+1
-1
@@ -121,7 +121,7 @@ class LrcManager:
|
||||
continue
|
||||
|
||||
# Cache the result (skip for self-cached fetchers)
|
||||
if not fetcher.self_cached:
|
||||
if not fetcher.self_cached and not bypass_cache:
|
||||
ttl = result.ttl or _STATUS_TTL.get(result.status, TTL_NOT_FOUND)
|
||||
self.cache.set(track, source, result, ttl_seconds=ttl)
|
||||
|
||||
|
||||
Reference in new issue
Block a user