Derived Data Cache?

Can I delete everything in here? Or is there a way to change the drive where that is saved?
AppData\Local\UnrealEngine\Common\DerivedDataCache
It is now 16GB and I almost have no more space on my SSD which is C:

2 Likes

This is explained in the documentation page for DerivedDataCache.

There appears to be no proper way to change the path when using no shared DDC. I tried to use Hourences solution but it would just make the editor crash while recompiling the shaders:

The engine caches shaders to C:\ no matter where you install. This folder can quickly become 10 GB or more on big projects. To make it write to your project folder instead add following lines to your default engine ini. Shader cache should not be submitted to source control.

    [InstalledDerivedDataBackendGraph]
    Boot=(Type=Boot, Filename=ā€%GAMEDIR%DerivedDataCache/Boot.ddcā€, MaxCacheSize=512)
    Local=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=true, UnusedFileAge=34, FoldersToClean=-1, Path=ā€%GAMEDIR%DerivedDataCacheā€) 

I ended up deleting the cache and letting it regenerate it on C again and it turned out to be much less space required. So I can work with that for now.

My DerivedDataCache was a wooping 27giga, a huge amount for my small ssd.

Davision is right, by deleting the folder and opening again your working project it will take much less space (700mb in my case). It will just take a bit more to open the project first time after you delete the files.

  1. Open BaseEngine.ini > UnrealEngineVersion\Engine\Config\BaseEngine.ini
  2. Find: [InstalledDerivedDataBackendGraph]
  3. Change: Path=ā€œ%ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCacheā€
  4. to: Path=ā€œ%GAMEDIR%LocalDerivedDataCacheā€

All cache will be saved in to directory of your project

6 Likes

Sweet baby jesus, thanks for this information
i have to move my DerivedDataCache to my another drive where the project folder is, itā€™s taking a whopping 40gb here, my small ssd starting to scream

U can remove Cache in old folder and engine will fully remake it in new folder - its will take some time but less than you need to move 40gb,

Will this move lead to crashes?

Nope (at least for me). I use this method on few machines without any crashes.

Can You show us how by a video please

Since 4.18 you can now set the path for the DerivedDataCache directly trough EditorPreference Global Settings.

2 Likes

thank you spaceharry

btw I passed your information onto a few other threads that had the same question. I linked to this thread and mentioned it was you who gave the info.
thanks again.

Could you please make a quick video of this ?

Everything (the app cache) is now on my C:(SSD) and i want it on my E:(HDD) Drive ,
not where my projects are on my S: (SDD) Drive,
so if could make a short video and paste the link down there pleaseā€¦
Thanks.

Open a project file: In the left upper corner: Edit > EditorPreferece and then just type in ā€˜ā€˜derivedā€™ā€™ in the search bar. The path option wil show up and from here you can chance it. A restart is required after changing

Oh, wow, idk how I missed that. Thanks!

Sorry if this is obvious, but how do you do that? Do you have to open a project file or something? I wasnā€™t able to find it in Editor settings.

Mikevandoorne open your editor preferences under EDIT. search for Derived in the search bar. you will see that you can change the location to another drive!

what happened to this in 4.20? there is literally nothing in the project settings nor baseengine.ini

the answers already been posted here.
go to EDIT. click on editor preferences. go to general, GLOBAL and you can change the directory to wherever u want.
its not in the project settings its under Editor preferences

Will it move the cach content to or does it need to recompile shaders and stuff again?
Or can i just copy paste the cach to an other location and then change it inside the engine so i does not have to recompile everything? Idk if that would work? If yes, it could save me a lot of time because i have like a lot of different maps i work on and it usualy takes long to compile it.
Thx.