aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview')
-rw-r--r--linden/indra/newview/app_settings/settings.xml11
-rw-r--r--linden/indra/newview/llappviewer.cpp14
2 files changed, 20 insertions, 5 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 7d9a0ca..3d38a18 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -2574,6 +2574,17 @@
2574 2574
2575 <!-- Begin: cache clearing --> 2575 <!-- Begin: cache clearing -->
2576 2576
2577 <key>KeepUnpackedCacheFiles</key>
2578 <map>
2579 <key>Comment</key>
2580 <string>If TRUE, the viewer won't delete unpacked cache files when logging out (improves overall performance and fixes sound bugs)</string>
2581 <key>Persist</key>
2582 <integer>1</integer>
2583 <key>Type</key>
2584 <string>Boolean</string>
2585 <key>Value</key>
2586 <integer>1</integer>
2587 </map>
2577 <key>PurgeCacheOnStartup</key> 2588 <key>PurgeCacheOnStartup</key>
2578 <map> 2589 <map>
2579 <key>Comment</key> 2590 <key>Comment</key>
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp
index 62b6242..c10c79b 100644
--- a/linden/indra/newview/llappviewer.cpp
+++ b/linden/indra/newview/llappviewer.cpp
@@ -1298,13 +1298,17 @@ bool LLAppViewer::cleanup()
1298 llinfos << "Settings patched up" << llendflush; 1298 llinfos << "Settings patched up" << llendflush;
1299 1299
1300 // delete some of the files left around in the cache. 1300 // delete some of the files left around in the cache.
1301 removeCacheFiles("*.wav"); 1301 if (!gSavedSettings.getBOOL("KeepUnpackedCacheFiles"))
1302 {
1303 LL_INFOS("AppCache") << "Purging unpacked files..." << llendl;
1304 removeCacheFiles("*.wav");
1305 removeCacheFiles("*.lso");
1306 removeCacheFiles("*.dsf");
1307 removeCacheFiles("*.bodypart");
1308 removeCacheFiles("*.clothing");
1309 }
1302 removeCacheFiles("*.tmp"); 1310 removeCacheFiles("*.tmp");
1303 removeCacheFiles("*.lso");
1304 removeCacheFiles("*.out"); 1311 removeCacheFiles("*.out");
1305 removeCacheFiles("*.dsf");
1306 removeCacheFiles("*.bodypart");
1307 removeCacheFiles("*.clothing");
1308 1312
1309 llinfos << "Cache files removed" << llendflush; 1313 llinfos << "Cache files removed" << llendflush;
1310 1314