How to move "Derived Data Cache" folder?

Hey guys,

I installed UE4 on my second HArd Disk (Sata III HDD rather than my SSD).
Even if I did that, some files are still installed on my SSD (C:\Users\xxxxxxx\AppData\Local).

I’m fine with it, but there is a folder called “Derived Data Cache” who takes more than 10Go of my SSD

How can I move this “Derived Data Cache” folder ?

Thanks !

EDIT: I saw on Hourences, that we can move this folder by editing the EngineDefault.ini (Hourences.com – Tutorials – UE4 Quick first tips)

1 Like

You can probably just move them, but as they are caches it should be safe to delete them and have them regenerated at the new location instead.

Okay thanks :slight_smile:

More simple way:

  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

Since 4.18 you can now set the path for the Derived Data Cache directly through Editor Preference Global Settings.
this was posted by spaceharry in this thread. I am only passing on his information.

Thank you very much!!!

The setting in 4.18 helped me to solve my problem

Thanks for information. Every time getting a new drive for engine, I’m just looking for this method.

(Edit: Still works with 4.22)

best solution. still works on 4.26

1 Like

Thanks. This worked in 4.26.2 .
Changed it at (by clicking through)
Edit > Editor Preferences > General > Global > Local Derived Data Cache.
This worked and changed the location across all projects.
Afterwards the editor did begin recompiling all the shaders and compressing animations.

2 Likes

Awesome, good to know.

Thanks!!!

Thanks!

Thanks for the method, I only have like 120GB SSD and I just saved like 20GB space with it, working in the 4.26 btw.