"""Shared on-disk cache root for proxied Plex assets. Both poster/art images (imgcache.py) and converted subtitle VTTs (subtitles.py) are cached here, so the directory belongs to neither module — it lives in this neutral home to avoid a cross-import. On-demand + bounded by the library size; no eviction (a few hundred MB at most for a big library — acceptable, matching the download disk trade-offs). """ from pathlib import Path from app.config import settings CACHE_DIR = Path(settings.download_root) / ".plex-img-cache"