# \[HOW TO\] Change local data cache location

**URL:** <https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354>\
**Category:** C++\
**Tags:** unreal-engine, Engine-Source-Code, GitHub\
**Created:** [June 12, 2015, 11:02am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354 "2015-06-12T11:02:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![msvcrt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@msvcrt](https://forums.unrealengine.com/u/msvcrt)\
**Post date:** [June 12, 2015, 11:02am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/1 "2015-06-12T11:02:54Z")

</div>

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](https://docs.unrealengine.com/latest/INT/Engine/Basics/DerivedDataCache/index.html) 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!

---

<div class="post-metadata">

**Author:** ![paulr70](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@paulr70](https://forums.unrealengine.com/u/paulr70)\
**Post date:** [July 3, 2015, 2:46pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/2 "2015-07-03T14:46:39Z")

</div>

Thanks was looking into this myself. Can you explain which baseEngine.ini that needs updating as I have several.

My issue is that I have unreal engine on my B: ssd drive and yet it insists on putting it in this location  
C:\Users\pc\AppData\Local\UnrealEngine\Common\DerivedDataCache\

---

<div class="post-metadata">

**Author:** ![msvcrt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@msvcrt](https://forums.unrealengine.com/u/msvcrt)\
**Post date:** [July 5, 2015, 8:52pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/3 "2015-07-05T20:52:15Z")

</div>

> [@paulr70;323836](#):
>
> Thanks was looking into this myself. Can you explain which baseEngine.ini that needs updating as I have several.
> 
> My issue is that I have unreal engine on my B: ssd drive and yet it insists on putting it in this location  
> C:\Users\pc\AppData\Local\UnrealEngine\Common\DerivedDataCache\

**If you have downloaded the engine from the Launcher** , then you have to edit [UE4\_ROOT]\Engine\Config\BaseEngine.ini

Find the [InstalledDerivedDataBackendGraph] section, then find this line in it:

Local=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=true, UnusedFileAge=34, FoldersToClean=-1, Path=“%ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache”)

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.

---

<div class="post-metadata">

**Author:** ![steve3d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@steve3d](https://forums.unrealengine.com/u/steve3d)\
**Post date:** [July 8, 2015, 9:39am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/4 "2015-07-08T09:39:14Z")

</div>

If I compiled the engine from GitHub source, then how can I recreate the Compressed.ddp for engine’s local Derived Data Cache?

I’ve tried some, but everytime I import some thing, engine still tries to compile shader, and my generated Compressed.ddp only have 80M.

---

<div class="post-metadata">

**Author:** ![msvcrt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@msvcrt](https://forums.unrealengine.com/u/msvcrt)\
**Post date:** [July 9, 2015, 3:48am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/5 "2015-07-09T03:48:15Z")

</div>

@steve3d:

I am not sure about Compessed.ddp but you can use this command:

_UE4Editor-Cmd [GameName] -run=DerivedDataCache -fill -DDC=CreatePak_

to create a redistributable package from your DDC.

---

<div class="post-metadata">

**Author:** ![paulr70](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@paulr70](https://forums.unrealengine.com/u/paulr70)\
**Post date:** [July 13, 2015, 6:57pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/6 "2015-07-13T18:57:58Z")

</div>

Thank you Robert, that worked 🙂

---

<div class="post-metadata">

**Author:** ![Drixil](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Drixil](https://forums.unrealengine.com/u/Drixil)\
**Post date:** [July 14, 2015, 3:51am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/7 "2015-07-14T03:51:40Z")

</div>

NOPE Don’t work

> [@Robert Khalikov;325231](#):
>
> **If you have downloaded the engine from the Launcher** , then you have to edit [UE4\_ROOT]\Engine\Config\BaseEngine.ini
> 
> Find the [InstalledDerivedDataBackendGraph] section, then find this line in it:
> 
> Local=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=true, UnusedFileAge=34, FoldersToClean=-1, Path=“%ENGINEVERSIONAGNOSTICUSERDIR%DerivedDataCache”)
> 
> 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.

---

<div class="post-metadata">

**Author:** ![Nemecys](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nemecys](https://forums.unrealengine.com/u/Nemecys)\
**Post date:** [May 2, 2016, 3:20pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/8 "2016-05-02T15:20:35Z")

</div>

> [@Drixil;331685](#):
>
> NOPE Don’t work

I have to argue there with you Drixil, you must of made a mistake.  
Worked a treat for me, this is what mine now looks like, saving me a nice 10GB on my OS dedicated SSD.

```auto

[InstalledDerivedDataBackendGraph]
MinimumDaysToKeepFile=7
Root=(Type=KeyLength, Length=120, Inner=AsyncPut)
AsyncPut=(Type=AsyncPut, Inner=Hierarchy)
Hierarchy=(Type=Hierarchical, Inner=Boot, Inner=Pak, Inner=CompressedPak, Inner=EnginePak, Inner=Local)
Boot=(Type=Boot, Filename="%ENGINEUSERDIR%DerivedDataCache/Boot.ddc", MaxCacheSize=512)
Local=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=true, UnusedFileAge=34, FoldersToClean=-1, Path="X:\UE4DataCache")

```

I can confirm this works as expected on the 4.11 Launcher version of the engine.

You can also copy the EXISTING Data Cache folder and put it in your new location and everything loads as quickly as it did before!

Perfect!!

Thanks for the help/Tutorial!!

---

<div class="post-metadata">

**Author:** ![jojogogo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jojogogo](https://forums.unrealengine.com/u/jojogogo)\
**Post date:** [July 25, 2016, 3:29am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/9 "2016-07-25T03:29:06Z")

</div>

> [@Drixil;331685](#):
>
> NOPE Don’t work

It might be the name of your new folder. Don’t use “DerivedDataCache” again if you put it in %GAMEDIR%, where already has a DerivedDataCache folder.

I set the dir to “%GAMEDIR%DerivedDataCache” with no effects plus the engine rewrite it to default.  
Then I changed it to: “%GAMEDIR% **Local** DerivedDataCache”, it worked like a charm.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_72d9371a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_72d9371a1](https://forums.unrealengine.com/u/anonymous_user_72d9371a1)\
**Post date:** [January 23, 2017, 6:56am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/10 "2017-01-23T06:56:18Z")

</div>

> [@jojogogo;570154](#):
>
> It might be the name of your new folder. Don’t use “DerivedDataCache” again if you put it in %GAMEDIR%, where already has a DerivedDataCache folder.
> 
> I set the dir to “%GAMEDIR%DerivedDataCache” with no effects plus the engine rewrite it to default.  
> Then I changed it to: “%GAMEDIR% **Local** DerivedDataCache”, it worked like a charm.

Thanks for the help dude!

---

<div class="post-metadata">

**Author:** ![Mikevandoorne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikevandoorne](https://forums.unrealengine.com/u/Mikevandoorne)\
**Post date:** [January 20, 2018, 11:49am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/11 "2018-01-20T11:49:10Z")

</div>

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.  
Thanks.  
And let me know if there is a video on how to do this please.

---

<div class="post-metadata">

**Author:** ![Mikevandoorne](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mikevandoorne](https://forums.unrealengine.com/u/Mikevandoorne)\
**Post date:** [April 5, 2018, 10:54am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/12 "2018-04-05T10:54:34Z")

</div>

Anyone please?  
Thanks.

---

<div class="post-metadata">

**Author:** ![AlienChrysalis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlienChrysalis](https://forums.unrealengine.com/u/AlienChrysalis)\
**Post date:** [May 5, 2018, 8:22pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/13 "2018-05-05T20:22:38Z")

</div>

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&lt;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&lt;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

mklink /j C:\Users\deanb\AppData\Local\UnrealEngine F:\UnrealEngine

Hope that helps.

---

<div class="post-metadata">

**Author:** ![dansuciu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dansuciu](https://forums.unrealengine.com/u/dansuciu)\
**Post date:** [January 30, 2019, 2:00pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/14 "2019-01-30T14:00:05Z")

</div>

Thank you for this, things were getting hairy 🙂

---

<div class="post-metadata">

**Author:** ![laggyluk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@laggyluk](https://forums.unrealengine.com/u/laggyluk)\
**Post date:** [June 2, 2019, 3:55pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/15 "2019-06-02T15:55:31Z")

</div>

Why it’s not in editor preferences or launcher settings?

---

<div class="post-metadata">

**Author:** ![yung23athome](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yung23athome](https://forums.unrealengine.com/u/yung23athome)\
**Post date:** [April 13, 2020, 8:53pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/16 "2020-04-13T20:53:31Z")

</div>

can EPIC not simply give us a more simpler solution to this deriveddatacache location in the engine itself ?

I have edited my BaseEngine.ini as described, and it seemed to work for a bit, but I’m downloading via Bridge and my C drive just exploded to 0MB left.

This seems like such a simple thing. We need to tell UE where our “scratch disc” is. and have all of this stuff put there automatically.

---

<div class="post-metadata">

**Author:** ![yung23athome](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yung23athome](https://forums.unrealengine.com/u/yung23athome)\
**Post date:** [April 13, 2020, 8:54pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/17 "2020-04-13T20:54:14Z")

</div>

> [@AlienChrysalis](#):
>
> 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&lt;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&lt;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
> 
> mklink /j C:\Users\deanb\AppData\Local\UnrealEngine F:\UnrealEngine
> 
> Hope that helps.

Where would this batch file go ?

---

<div class="post-metadata">

**Author:** ![AlienChrysalis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlienChrysalis](https://forums.unrealengine.com/u/AlienChrysalis)\
**Post date:** [May 1, 2020, 1:15am UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/18 "2020-05-01T01:15:47Z")

</div>

> [@yung23athome](#):
>
> Where would this batch file go ?

It can go anywhere because it uses absolute paths.

---

<div class="post-metadata">

**Author:** ![Alpha-16](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alpha-16/32/467178_2.png) [@Alpha-16](https://forums.unrealengine.com/u/Alpha-16)\
**Post date:** [May 11, 2020, 4:27pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/19 "2020-05-11T16:27:25Z")

</div>

> [@AlienChrysalis](#):
>
> 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&lt;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&lt;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
> 
> mklink /j C:\Users\deanb\AppData\Local\UnrealEngine F:\UnrealEngine
> 
> Hope that helps.

Not working for me. With the shortcut way

---

<div class="post-metadata">

**Author:** ![Mn8Multimedia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mn8Multimedia](https://forums.unrealengine.com/u/Mn8Multimedia)\
**Post date:** [May 16, 2020, 10:51pm UTC](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354/20 "2020-05-16T22:51:53Z")

</div>

> [@AlienChrysalis](#):
>
> 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&lt;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&lt;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
> 
> mklink /j C:\Users\deanb\AppData\Local\UnrealEngine F:\UnrealEngine
> 
> Hope that helps.

This worked perfectly for me. Moved my UnrealEngine folder, created a shortcut, deleted original folder and replaced it with new shortcut. All projects open fine, 42 GBS saved on my C drive, thanks.

[Next page](https://forums.unrealengine.com/t/how-to-change-local-data-cache-location/32354.md?page=2)
