diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 455bddf52c..a1eaa8693d 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -102,6 +102,17 @@ Value 0 + PhoenixKeepUnpackedCacheFiles + + Comment + If TRUE, the viewer won't delete unpacked cache files when logging out (improves overall performance and fixes sound bugs) + Persist + 1 + Type + Boolean + Value + 0 + RadarAlertChannel Comment diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index bc826fcf80..384739f7ca 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1529,7 +1529,10 @@ bool LLAppViewer::cleanup() removeCacheFiles("*.tmp"); removeCacheFiles("*.lso"); removeCacheFiles("*.out"); - removeCacheFiles("*.dsf"); + if(!gSavedSettings.getBOOL("PhoenixKeepUnpackedCacheFiles")) + { + removeCacheFiles("*.dsf"); + } removeCacheFiles("*.bodypart"); removeCacheFiles("*.clothing");