You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cache entries are never removed today. That is deliberate for v1: they are small, and deleting the folder is always safe.
But a large site that edits often will accumulate orphans, because the cache key includes the text, so every edit strands the previous recording rather than replacing it.
Not urgent, and worth measuring before solving. A 3.5 second clip is roughly 20KB, so a thousand orphans is about 20MB, which nobody will notice. The question is what a busy news site looks like after a year.
Options, roughly in order of how much I like them:
Delete entries not read for N days, on a schedule. Simple, and the next request regenerates.
Cap total size, evict least-recently-used.
Nothing, and document the folder as safe to delete.
If you pick this up, measure first. A number from a real site beats a policy chosen in the abstract.
Unpublished and deleted nodes leave files too, not only edited ones. Nothing deletes cache files today.
Draft PR #36 adds an opt-in age sweep: set CacheMaxAgeDays and a daily job deletes cached files last written longer ago than that. Off by default, so nothing changes unless you turn it on.
Done in #36, released in v0.4.0. Set CacheMaxAgeDays and a hosted service sweeps the disk cache once a day, deleting entries older than that by last write time. Only files named like cache entries are touched. It is off by default. Closing.
Activity
arnelirobles commentedon Nov 16, 2026
Unpublished and deleted nodes leave files too, not only edited ones. Nothing deletes cache files today.
Draft PR #36 adds an opt-in age sweep: set
CacheMaxAgeDaysand a daily job deletes cached files last written longer ago than that. Off by default, so nothing changes unless you turn it on.arnelirobles commentedon Nov 25, 2026
Done in #36, released in v0.4.0. Set
CacheMaxAgeDaysand a hosted service sweeps the disk cache once a day, deleting entries older than that by last write time. Only files named like cache entries are touched. It is off by default. Closing.