Deleting ~/.cache can silently wipe saved API keys, IDE history and clipboard data
A developer found that deleting the ~/.cache directory made Langflow unable to decrypt a saved OpenAI key, because its encryption key was stored there and was regenerated on restart. Many widely recommended cache cleanups therefore carry hidden costs. The author examined several tools and found that JetBrains local history, Clipboard Indicator's pinned clips, cliphist, Deno's localStorage and ibus-libpinyin's learned typing data are all stored in the cache directory. Some of these tools have already moved or changed this behavior, and most offer settings to relocate the data, though those settings are not enabled by default. The piece advises checking what lives in ~/.cache before deleting it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in