Lineup Signup
Hi! We're just rearranging some Desktop boards to make it easier to find what you're looking for. Please bear with us, and we'll be done very soon.
To post a new question or issue, please go here: Desktop (Windows), Desktop (Mac), Desktop (Linux), Web Player.

[Windows] How to reduce and limit the cache size

Reply
16 people liked this

[Windows] How to reduce and limit the cache size

Edited
Newbie
‎2015-08-27 03:21 AM

This is in regards to the Spotify Windows Desktop Application.

 

I had previously set my Spotify cache to 10GB when the setting was available from within the application. I since decided that 10GB was a little big for my cache. Since the current Spotify version does not have that internal application setting, I had to edit a file.

 

To limit the Spotify cache size:

 

1. Download and install Notepad++ or use some similar code editing program. Opening in Microsoft Notepad will result in a fancy mess.

2. Close Spotify.

3. Open Explorer and paste the following into the address bar.

  1. %USERPROFILE%\AppData\Roaming\Spotify

 

4. Open the file named "prefs" with your code editor.
5. Change the numeric value following "storage.size=" . This value represents megabytes. One gigabyte equals 1024 megabytes.
6. Save the file.
7. Start Spotify.
8. The cache should be reduced; not exceeding the size that you entered.
9. To verify, check the size of the "Data" folder in the following directory:

%USERPROFILE%\AppData\local\Spotify\

 

I hope this helped.

9 Replies

Re: [Windows] How to reduce and limit the cache size

Roadie
‎2015-08-29 04:06 PM
Good job!
5 people liked this

Re: [Windows] How to reduce and limit the cache size

Newbie
‎2015-12-19 01:37 AM
By the way if the value "storage.size=" does not exist you can add it manually to the end of the file and the solution will still work. Thanks.

Re: [Windows] How to reduce and limit the cache size

Newbie
‎2016-01-07 02:39 PM
Smashing, thanks for this - I'm relatively certain that this massive cache is what's causing my Spotify Desktop to work like a pig. Hopefully this remedies that issue.

Re: [Windows] How to reduce and limit the cache size

Newbie
‎2016-02-18 04:57 PM
Spotify removes that line in the perfs file after it launches.

Re: [Windows] How to reduce and limit the cache size

Casual Listener
‎2016-03-22 02:46 PM
If you add it on the second to last line it'll stay, but I haven't been able to check if it's actually working. The existing cache folder wasn't reduced so I deleted it. Will have to stream a bit to find out if it doesn't go above 1024 now.

Re: [Windows] How to reduce and limit the cache size

user-removed
‎2016-04-22 09:31 AM

Thank you so much for posting this instruction! It really helped and worked!

Re: [Windows] How to reduce and limit the cache size

Casual Listener
‎2016-04-25 07:42 AM
It didn't work for me. I'm back to 4GB of cache atm...

Re: [Windows] How to reduce and limit the cache size

Music Fan
‎2016-04-25 09:56 AM

This should be really helpful! Thanks!

Re: [Windows] How to reduce and limit the cache size

Newbie
‎2017-04-05 10:23 PM

Thanks! Great info!

SUGGESTED POSTS