Forum Discussion
Set a hard limit on disk used by Edge for cache
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.
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
- DeltaWaspOct 21, 2020Brass Contributor
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.- Erik_AndersonOct 22, 2020
Microsoft
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?