Asset Fingerprint Cache
Use When
- Generated media files are reused across preview, render, or review
flows.
- You need a lightweight way to detect whether assets changed.
- Cache busting or downstream invalidation depends on file updates.
Core Rule
- Cache identity should come from the asset file state, not guesswork.
Inputs
- project path
- asset directories to scan:
storyboards, videos, thumbnails, characters, scenes, props
- optional root-level media files
Outputs
- mapping of relative asset paths to fingerprints
- change detection signal for cache busting or selective reruns
Workflow
- Scan the known media directories.
- Collect a stable lightweight fingerprint per file:
mtime-based is acceptable when content hashing is unnecessary.
- Exclude version-history directories from the live fingerprint map.
- Expose the fingerprint map to preview, cache, or invalidation logic.
- Recompute cheaply after writes rather than doing expensive deep
hashes by default.
Good Uses
- bust preview URLs when a storyboard changes
- detect that a generated clip or thumbnail was updated
- know whether downstream compose or publish surfaces should refresh
Bad Uses
- treating temp files as permanent cache keys
- scanning archived version directories as if they were live assets
- using heavyweight hashing where mtime-level invalidation is enough