Dev Tools · 1h ago
Fastembed cache in temp folder causes silent worker crashes
A developer's worker crashed because fastembed cached models in the OS temp directory, which Windows periodically purges. The cache stored model files in a snapshot folder, but partial cleanup left metadata pointing to missing files, causing intermittent failures. The fix is to explicitly set a persistent cache_dir outside temp.
Meridian48 take
This is a classic footgun: libraries defaulting to temp directories for caches that must survive reboots, a lesson many devs learn the hard way.
Read the full reporting
When fastembed silently rotted my worker: anchor your caches, don't trust /tmp →
DEV Community
cache-managementfastembed