On my Mac, I have noticed that Spotify uses quite a large cache ( /Library/Caches/com.spotify.client). In my case, it is roughly 4GB. However, that's really puzzling because while it's true that I download all my songs, I barely own like 25 songs. The folder contains a LOT of seemingly encrypted files of 10MB or so (definitely more than 25 files!). So my question is: why is this cache so large? Is this behavior expected from such a small library of mine?
I imagine that deleting it just clears my downloaded soundtracks - which I don't really intend to do, but I am baffled that the massive size of the cache. It seems there is two types of cache with Spotify. The first type (not the one your describing) is used for the tracks you have downloaded. It’s as simple as that.:) The second type is downloaded songs onto your computer from streaming the music online.
![How To Clear Spotify Cache For Mac How To Clear Spotify Cache For Mac](/uploads/1/2/5/5/125562409/310253956.jpg)
Even though you never told Spotify to download these song, it saves them anyway as your streaming them so that if you ever play that song in the future, it will play them from the cache. This reduces the stress on their servers, meaning they don't have to have as big as a infrastructure, and they make more profit. They encrypt it because they don't want you walking off with the songs. The is where I can validate this information. Go ahead and delete it. At the end of the day, Spotify client is closed source code, so we cannot change what it does. What we can do however is set a cron job to delete the directory daily, so that it would never grow very large.
The question you should be worried about is how I can clear Mac cache. Mac operating system has the ability to handle some few cache types. There are apps that can handle their own cache management task while others can’t and depend on the user to help clear them out when they occupy much space. Users with the know-how can actually clean out this cache manually.
Add this line to crontab and it will delete the file daily at 12. 0 12.
rm 'Library/Caches/com.spotify.client' /dev/null 2&1.
Hi, help has arrived! So first step is to delete Spotify's cache. You can do it by following. After you've done that, follow these steps: 1. Close Spotify. Locate the Spotify prefs file: /Library/Application Support/Spotify/prefs 3. Open the file in your favorite text editor 4.
Add another line and put a value in megabytes right after the equals sign. I chose 1024mb. Storage.size=1024 5. Relaunch Spotify. You will see your cache has shrunk to the specified size.
Hope this helps, have a lovely day!