Set a hard limit on disk used by Edge for cache

%3CLINGO-SUB%20id%3D%22lingo-sub-1784907%22%20slang%3D%22en-US%22%3ESet%20a%20hard%20limit%20on%20disk%20used%20by%20Edge%20for%20cache%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1784907%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20find%20how%20to%20limit%20the%20amount%20of%20disk%20space%20used%20by%20Edge%20for%20it's%20cache%2Ftemp%20files%2C%20we%20have%20it%20set%20to%20a%20couple%20of%20hundred%20Mb%2C%20but%20I've%20seen%20it%20exceeds%20this%20to%20well%20over%20a%20Gb.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20group%20policy%20documentation%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FDeployEdge%2Fmicrosoft-edge-policies%23diskcachesize%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2FDeployEdge%2Fmicrosoft-edge-policies%23diskcachesize%3C%2FA%3E%26nbsp%3Bsays%20that%20'...%3CSPAN%3EThe%20value%20specified%20in%20this%20policy%20isn't%20a%20hard%20boundary%20but%20rather%20a%20suggestion%20to%20the%20caching%20system...'%20..%20which%20is%20not%20very%20helpful%2Fuseful.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EDoes%20anybody%20have%20experience%20of%20solving%20this%20one%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1791369%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20a%20hard%20limit%20on%20disk%20used%20by%20Edge%20for%20cache%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1791369%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F832189%22%20target%3D%22_blank%22%3E%40DeltaWasp%3C%2FA%3E%26nbsp%3BThanks%20for%20reaching%20out!%20Tagging%20in%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F757644%22%20target%3D%22_blank%22%3E%40Kelly_Y%3C%2FA%3E%26nbsp%3Bwho%20can%20help%20with%20that%20GPO%20question.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CI%3EFawkes%20(they%2Fthem)%3CBR%20%2F%3EProgram%20Manager%20%26amp%3B%20Community%20Manager%20-%20Microsoft%20Edge%3CI%3E%3C%2FI%3E%3C%2FI%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1797662%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20a%20hard%20limit%20on%20disk%20used%20by%20Edge%20for%20cache%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1797662%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%2C%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F484598%22%20target%3D%22_blank%22%3E%40fawkes%3C%2FA%3E%26nbsp%3B!%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F832189%22%20target%3D%22_blank%22%3E%40DeltaWasp%3C%2FA%3E%26nbsp%3B-%20I'm%20checking%20with%20the%20team%20right%20now.%26nbsp%3B%20I'll%20follow%20up%20after%20we've%20had%20a%20chance%20to%20discuss.%26nbsp%3B%20Thanks!%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E-Kelly%3C%2FEM%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1798692%22%20slang%3D%22en-US%22%3ERe%3A%20Set%20a%20hard%20limit%20on%20disk%20used%20by%20Edge%20for%20cache%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1798692%22%20slang%3D%22en-US%22%3EI've%20been%20using%20the%20same%20thing%20on%20Firefox%20and%20it's%20been%20convenient%20for%20me.%3CBR%20%2F%3Eanother%20useful%20case%20is%20for%20Windows%20virtual%20desktops%20where%20each%20user%20has%20a%20dedicated%20disk%20space%20and%20you%20wouldn't%20want%20Edge%20to%20take%20up%20a%20lot%20of%20space%20for%20cache.%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I'm trying to find how to limit the amount of disk space used by Edge for it's cache/temp files, we have it set to a couple of hundred Mb, but I've seen it exceeds this to well over a Gb.

 

The group policy documentation here: https://docs.microsoft.com/en-us/DeployEdge/microsoft-edge-policies#diskcachesize says that '...The value specified in this policy isn't a hard boundary but rather a suggestion to the caching system...' .. which is not very helpful/useful.

 

Does anybody have experience of solving this one?

6 Replies
Highlighted

@DeltaWasp Thanks for reaching out! Tagging in @Kelly_Y who can help with that GPO question.

 

Fawkes (they/them)
Program Manager & Community Manager - Microsoft Edge

Highlighted

Thanks, @fawkes !  

 

Hi @DeltaWasp - I'm checking with the team right now.  I'll follow up after we've had a chance to discuss.  Thanks! 

 

-Kelly

Highlighted
I've been using the same thing on Firefox and it's been convenient for me.
another useful case is for Windows virtual desktops where each user has a dedicated disk space and you wouldn't want Edge to take up a lot of space for cache.
Highlighted
Microsoft Verified Best Answer

@DeltaWasp  Hello!  I confirmed with the team that due to various reasons, like performance issues, the DiskCacheSize policy does not set a hard limit.  Also, for a little more information please see the following Issue in Chromium 

 

The team has suggested other policies available in MS Edge that can help with disk cache problems.  For example, have you seen https://docs.microsoft.com/en-us/DeployEdge/microsoft-edge-policies#clearcachedimagesandfilesonexit ? 

 

If it is not possible to resolve your issue using other available policies, would you be able to provide more information about your scenario and the problem you are encountering?  Thanks!

 

-Kelly

Highlighted

@Kelly_Y Hi yes we're aware of clearcachedimagesandfilesonexit but we don't want to implement that as it may cause performance issues for internal apps. We have never had an issue like this in IE11.


This behaviour is problematic for us as our desktops are virtual and some users have lost remote connectivity as low disk space has knocked-out the remote access software.

 

 

Highlighted

@DeltaWasp this quota value is currently per-cache which is admittedly a bit unintuitive. The Chromium project is tracking that wrinkle via https://crbug.com/1064308.

 

Please note that the eviction process will not run in the first 5 minutes after the browser launches for performance and responsiveness reasons.

 

To help us understand what caches and other data is contributing to the size you're seeing, can you please go through "%localappdata%\Microsoft\Edge\User Data" and recursively call out the directories contributing the most to the large size you're seeing?