Unreal Engine Var console variable.
r.Shadow.CacheWholeSceneShadows [value]
Set via the console (~) or in DefaultEngine.ini / DefaultGame.ini.