# How do I set Zen DDC location to the project folder?

**URL:** <https://forums.unrealengine.com/t/how-do-i-set-zen-ddc-location-to-the-project-folder/2017286>\
**Category:** Feedback & Requests\
**Tags:** storage, unreal-engine, cache, editor, question\
**Created:** [September 12, 2024, 6:47am UTC](https://forums.unrealengine.com/t/how-do-i-set-zen-ddc-location-to-the-project-folder/2017286 "2024-09-12T06:47:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BOB.cat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BOB.cat](https://forums.unrealengine.com/u/BOB.cat)\
**Post date:** [September 12, 2024, 6:47am UTC](https://forums.unrealengine.com/t/how-do-i-set-zen-ddc-location-to-the-project-folder/2017286/1 "2024-09-12T06:47:20Z")

</div>

I’ve always set the DDC to be local inside my project folder, each project had its own `LocalDerivedDataCache` folder.  
That way, when I backed up up a project and moved it to a different computer, I’d keep the cache so the engine didn’t waste time recreating it.

The way I did this was by editing a line in `BaseEngine.ini`:  
Under `[InstalledDerivedDataBackendGraph]`  
Change `Path="%ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache"`  
To `Path="%GAMEDIR%LocalDerivedDataCache"`

I recently switchted to UE5.4 and noticed the method above did not work. And I discovered it’s because of a new thing called “Zen”.  
Zen is saving the cache to `%LocalAppData%\UnrealEngine\Common\Zen\Data`

How can I make it save a project folder? Preferably make it so that it persists when I create new projects.

Thanks.

---

<div class="post-metadata">

**Author:** ![JacobLu2022](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JacobLu2022](https://forums.unrealengine.com/u/JacobLu2022)\
**Post date:** [November 1, 2024, 1:40pm UTC](https://forums.unrealengine.com/t/how-do-i-set-zen-ddc-location-to-the-project-folder/2017286/2 "2024-11-01T13:40:49Z")

</div>

I have the same problem, if you have a solution please @me, thank you

---

<div class="post-metadata">

**Author:** ![BOB.cat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BOB.cat](https://forums.unrealengine.com/u/BOB.cat)\
**Post date:** [November 15, 2024, 3:19pm UTC](https://forums.unrealengine.com/t/how-do-i-set-zen-ddc-location-to-the-project-folder/2017286/3 "2024-11-15T15:19:18Z")

</div>

TLDR:  
After launching a project and already compiling shaders to the default Zen DDC Folder(sigh), go to  
`Editor Preferences` \> `Global` \> `Derived Data Cache`  
and set the `Project Local DDC Path` to  
`%GAMEDIR%LocalDerivedDataCache`  
Upon restart, the project will compile shaders from scratch but they will be placed inside the project folder.

I can’t find where this variable is stored, so it’s not possible to set it prior to launching a new project.  
_I can’t even export any of the settings?!_

* * *

I’ve read the [DDC documentation](https://dev.epicgames.com/documentation/en-us/unreal-engine/using-derived-data-cache-in-unreal-engine), again, and the comments in `BaseEngine.ini` file, again.

The following command sets an environment variable which supposedly sets the location for the DDC system, Zen or otherwise.

`setx UE-LocalDataCachePath %GAMEDIR%LocalDerivedDataCache`

But it does not work.

* * *

I did find a line in `BaseEngine.ini` to make the Zen DDC save to the current project folder.

Under the `[Zen.AutoLaunch]` section, change the  
`DataPath=%ENGINEVERSIONAGNOSTICINSTALLEDUSERDIR%Zen/Data`  
line to:  
`DataPath=%GAMEDIR%LocalDerivedDataCache`

But I was too quick to celebrate.  
Unfortunately, upon a launching a different project, this method deletes the previous DDC location.

* * *

My conclusion is that it’s bugged. Epic, please fix.  
I had already reported that the environment variable not working a month ago. Though, I can’t find my report now for whatever reason.

---

<div class="post-metadata">

**Author:** ![pawnlogic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pawnlogic](https://forums.unrealengine.com/u/pawnlogic)\
**Post date:** [December 22, 2024, 11:59am UTC](https://forums.unrealengine.com/t/how-do-i-set-zen-ddc-location-to-the-project-folder/2017286/4 "2024-12-22T11:59:08Z")

</div>

UnrealEngineVersion\Engine\Config\BaseEngine.ini  
"Under the [Zen.AutoLaunch] section, change the  
DataPath=%ENGINEVERSIONAGNOSTICINSTALLEDUSERDIR%Zen/Data  
to:  
DataPath=%GAMEDIR%LocalDerivedDataCache "

Thanks for the answer it worked for UE5.5.1, the folder %LocalAppData%\UnrealEngine\Common\Zen\Data was automatically deleted after changing the ini and then open any UE5.5 project, which is expected and the projects can save their cache to their project folders.

Oh no after I opened the 2nd UE5.5 project, the LocalDerivedDataCache folder in the previous UE5.5 project was also automatically deleted, this is a bug and needs to be fixed.

Have to change back to the default ini using the folder %LocalAppData%\UnrealEngine\Common\Zen\Data, and keep playing the engine until it’s bloated too much that UE5.5 can’t run properly, then manually clean the cache and expect hours for the PC to recreate the cache.

---

<div class="post-metadata">

**Author:** ![Masakralny](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Masakralny](https://forums.unrealengine.com/u/Masakralny)\
**Post date:** [July 22, 2025, 5:15pm UTC](https://forums.unrealengine.com/t/how-do-i-set-zen-ddc-location-to-the-project-folder/2017286/5 "2025-07-22T17:15:53Z")

</div>

Go to  
C:\Users\X\AppData\Local\UnrealEngine\Y\Saved\Config\Windows  
X = “YourAccountName”  
Y = “EngineVersion” for example 4.27

For 5.6 It’s under  
C:\Users\X\AppData\Local\UnrealEngine\5.6\Saved\Config\WindowsEditor

Search for EditorSettings.ini  
Open this file and search for  
[/Script/UnrealEd.EditorSettings]  
If above line doesnt exist create it and add below lines  
LocalDerivedDataCache=(Path=“%GAMEDIR%DerivedDataCache”)  
SharedDerivedDataCache=(Path=“%GAMEDIR%DerivedDataCache”)

Save file and after saving do not run editor yet until you mark file to be READ ONLY!!!  
Right Click EditorSettings.ini go to Properties and Check Read Only and apply.  
Done

---

<div class="post-metadata">

**Author:** ![pawnlogic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pawnlogic](https://forums.unrealengine.com/u/pawnlogic)\
**Post date:** [August 9, 2026, 12:27pm UTC](https://forums.unrealengine.com/t/how-do-i-set-zen-ddc-location-to-the-project-folder/2017286/7 "2026-08-09T12:27:41Z")

</div>

Thanks, this solution finally works for the UE5.5 version that I’m using, solved the issues created by the stupid Zen storage that thinks we have super computers with more than 2TB C drive. Using local DDC storage makes it convenient to test asset packs inside their own projects before migrating them into the game project.
