Does anyone have experience which parameters best to use to avoid that DDC gets cleaned up? I just opened a project that has not been opened for quite some time, and again had to wait 1 hour for shaders to compile. This happens often to me, and is annoying, so I want to change that.
I’m quite sure, that this is because of some automatic cleanup mechanism, that removes unused files from DDC.
In BaseEngine.ini in Program directory, there’s a line for local cache in the [DerivedDataBackendGraph] section:
Local=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=true, UnusedFileAge=34, FoldersToClean=-1, Path=%ENGINEDIR%DerivedDataCache, EnvPathOverride=UE-LocalDataCachePath, EditorOverrideSetting=LocalDerivedDataCache)
So my plan is to add that DerivedDataBackend section following to the DefaultEngine.ini in each project, for which I like to change this:
[DerivedDataBackendGraph] Local=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, PurgeTransient=true, DeleteUnused=false, UnusedFileAge=34, FoldersToClean=-1, Path=%ENGINEDIR%DerivedDataCache, EnvPathOverride=UE-LocalDataCachePath, EditorOverrideSetting=LocalDerivedDataCache)
My understanding is, that changing DeleteUnused to false should remove that background processing deleting old files completley. Instead increasing UnusedFileAge to a very high value could be another option, so setting this to 365 (days???) would cleanup after a very long time - something acceptable but still not growing forever.
What are your experiences with this? Is it ok just to add that section to each DefaultEngine.ini within each project, for which this should apply? Any implications apart from growing DDC?
BTW: I had moved my DDC from my low on space SSD to another drive location at E:\UE4_ddc in Editor Preferences. And this works, as I can see in the logs:
LogDerivedDataCache: Using Local data cache path E:/UE4_ddc: Writable