# "Engine\\Source\\Developer\\DerivedDataCache" and Perforce

**URL:** <https://forums.unrealengine.com/t/engine-source-developer-deriveddatacache-and-perforce/471030>\
**Category:** Modding\
**Tags:** developer, unreal-engine, Perforce, question\
**Created:** [September 8, 2020, 5:59pm UTC](https://forums.unrealengine.com/t/engine-source-developer-deriveddatacache-and-perforce/471030 "2020-09-08T17:59:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![DesertEagle\_PWN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DesertEagle\_PWN](https://forums.unrealengine.com/u/DesertEagle_PWN)\
**Post date:** [September 8, 2020, 5:59pm UTC](https://forums.unrealengine.com/t/engine-source-developer-deriveddatacache-and-perforce/471030/1 "2020-09-08T17:59:34Z")

</div>

So my SCM (Perforce) ignored my local Engine’s DDC (Engine/DerivedDataCache/) as intended; however, it ALSO ignores “Engine\Source\Developer\DerivedDataCache\Public”, which now appears to be causing build error: “error : Could not find definition for module ‘DerivedDataCache’, (referenced via Target → Launch.Build.cs → SessionServices.Build.cs → Core.Build.cs)”

Should this directory be included in Perforce, and if so how should that look in my .p4ignore?  
I currently have this line in my .p4ignore:

DerivedDataCache/

If this should not be in Perforce, how do teams usually access the \Source\Developer\DerivedDataCache\ path for building? Do they usually cache this on the Shared Network DDC with the actual cache contents? Thanks

---

<div class="post-metadata">

**Author:** ![emperor\_katax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/emperor_katax/32/1070178_2.png) [@emperor\_katax](https://forums.unrealengine.com/u/emperor_katax)\
**Post date:** [May 6, 2021, 10:27am UTC](https://forums.unrealengine.com/t/engine-source-developer-deriveddatacache-and-perforce/471030/2 "2021-05-06T10:27:00Z")

</div>

…same issue here, did you find any solution?

`1>UnrealBuildTool : error : Could not find definition for module 'DerivedDataCache', (referenced via Target -> Launch.Build.cs -> SessionServices.Build.cs -> Core.Build.cs)`

---

<div class="post-metadata">

**Author:** ![BrettDouville](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrettDouville](https://forums.unrealengine.com/u/BrettDouville)\
**Post date:** [June 15, 2021, 6:39pm UTC](https://forums.unrealengine.com/t/engine-source-developer-deriveddatacache-and-perforce/471030/3 "2021-06-15T18:39:46Z")

</div>

This is behavior governed by Perforce. If you are using, for example, a file called .p4ignore in your root, you should add a second .p4ignore file in Unreal4\_Base/Engine/Source/Developer with the following contents:

```
!DerivedDataCache

```

P4Ignore is cumulative by folder, so this should impact the Developer directory and its subdirectories only.

See more in Perforce’s [community support pages](https://community.perforce.com/s/article/6510).
