Today I found an 8 GB cache folder (in /Library/Caches/com.spotify.client/Data) and deleted it. It seems that every time I listen to a song, it gets cached. I looked it up and found that setting the storage.size field in /Application Support/Spotify/prefs.txt would put a cap on how large the cache could get. I set it to 50 megabytes, but it doesn't seem to have any effect. As I continue listening to new songs, the folder gets up to about 100 MB, but does fluctuate downward to about 55. Since its maximum size doesn't seem to be related to the setting I changed, I'm worried it'll keep growing. How can I set a firm limit on the cache size?
Solved! Go to Solution.
I figured out a solution on MacOS.
1. Close Spotify.
2. Locate the Spotify prefs file:
3. Open the file in your favorite text editor (I prefer Sublime Text)
4. Add another line and put a value in megabytes right after the equals sign. I chose 1024mb.
5. Relaunch Spotify. You will see your cache has shrunk to the specified size.