If you work with the Unreal Engine 4 you probably know what Derived Data Cache is. There is a nice article about it: Derived Data Cache | Unreal Engine Documentation which also explains you how to change the location you use to share your DDC with other people. But what if you want to change the location of the DDC itself? Your local cache. By default, the local cache uses your Engine/DerivedDataCache folder. What if you want to move it to another location? For example, to a separate HDD. You can! There’s another environment variable you can set: UE-LocalDataCachePath, just set it to any path you want!
Note #1: I haven’t tested it on a binary build of the engine (the one you download from the Launcher) but I assume that it will not work. For more details, open Engine/Config/BaseEngine.ini, find a section called [InstalledDerivedDataBackendGraph] and compare it to the section called [DerivedDataBackendGraph]. Note #2: This will change data cache location for ALL your compiled copies of the engine, which may result in conflict if you have multiple copies on your machine!
As you can see, the “Path” parameters tells the engine where to save DDC. By default it’s in AppData folder. So just replace it with any path you want (the path can be relative or absolute)
Note, that I haven’t tested this method myself!
If you compiled the engine from GitHub source then just create an environment variable UE-LocalDataCachePath and set the path as it’s value. Keep in mind, that in this case it will change the DDC directory for all compiled versions of the engine you have. This should work - I tested it.
Can you please make a youtube video tutorial of this please? for some reason it does not work and i need to clear space quickly, my sdd just fills up to much.
What i wanna do is move everything ue4 related (cache & vault, not the projects) to an other HDD drive, let’s say the path would be : E:\UE4DataCache.
Im using UE 4.15 & 4.18.2 downloaded trough Epic Games Launcher if that helps solve my problem.
And let me know if there is a video on how to do this please.
Another way to move your DDC files to another location if you don’t want to mess with the config location is to simply create a junction or shortcut to another drive/location. Just move the whole folder “C:\Users<your user name>\AppData\Local\UnrealEngine” to a new location for me I put it on my second SSD drive root so I now have “F:\UnrealEngine” then just create a shortcut to the new location in “C:\Users<your user name>\AppData\Local”
This moves not just the common DDC but potentially any other engine version specific files over to that same location, if you want to remove old engine version or common DDC files you can just go into F:\UnrealEngine and remove them there.
You can use the same trick for moving your VaultCache for the Launcher to a new location as well.
Also you can use a Junction instead of a shortcut, but most people are not comfortable with command line operations and batch files, so typically prefer Shortcuts and I think they basically the same thing, but for those interested you can use a batch file command like this to achieve the same result