fix: invalidate CK price cache after GitHub download so prices load without restart
Some checks are pending
CI / build (push) Waiting to run

This commit is contained in:
matt 2026-04-04 20:55:43 -07:00
parent 6ecd45117f
commit 33aced3c97
9 changed files with 39 additions and 4 deletions

View file

@ -1408,6 +1408,13 @@ def _ensure_setup_ready(out, force: bool = False) -> None:
"percent": 100,
"finished_at": _dt.now().isoformat(timespec='seconds')
})
# Invalidate in-memory CK price cache so the singleton picks up
# the newly downloaded ck_prices_cache.json without a restart.
try:
from code.web.services.price_service import get_price_service
get_price_service().invalidate_ck_cache()
except Exception:
pass
# Refresh theme catalog after successful download
_refresh_theme_catalog(out, force=False, fast_path=True)
return