Skip to content

Commit

Permalink
better cache dir
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Jan 16, 2025
1 parent 0e29242 commit f113404
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kscale/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_path() -> Path:
@dataclass
class WWWSettings:
api_root: str = field(default=DEFAULT_API_ROOT)
cache_dir: str = field(default=II("oc.env:KSCALE_CACHE_DIR,'~/.kscale/cache/'"))
base_dir: str = field(default=II("oc.env:KSCALE_DIR,'~/.kscale/'"))
refresh_interval_minutes: int = field(default=60 * 24)


Expand Down
2 changes: 1 addition & 1 deletion kscale/web/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@functools.lru_cache
def get_kscale_dir() -> Path:
"""Returns the cache directory for artifacts."""
return Path(Settings.load().www.cache_dir).expanduser().resolve()
return Path(Settings.load().www.base_dir).expanduser().resolve()


def get_auth_dir() -> Path:
Expand Down

0 comments on commit f113404

Please sign in to comment.