Skip to content

Commit

Permalink
Fix issue where file-based cache directory could not be changed (#11)
Browse files Browse the repository at this point in the history
fix issue where cache dir could not be set
  • Loading branch information
darthtrevino authored Apr 2, 2024
1 parent 8efe8bf commit 1501cc6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@ def _get_cache_config(
return PipelineMemoryCacheConfig()
case PipelineCacheType.file:
# relative to root dir
return PipelineFileCacheConfig(base_dir="./cache")
return PipelineFileCacheConfig(
base_dir=settings.cache.base_dir or "./cache"
)
case PipelineCacheType.none:
return PipelineNoneCacheConfig()
case PipelineCacheType.blob:
Expand Down

0 comments on commit 1501cc6

Please sign in to comment.