From 9bce3b38d4889d166a00614e7285b08b52eafe97 Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Tue, 31 Dec 2013 23:37:10 +0100 Subject: [PATCH] Do not erase cache every login forever, when NewCacheLocation is set a non-existing directory! I can't believe that I have not have gotten a cache for two years because of this... I knew I didn't, but didn't really want to fix it while I working on the network code (AICurl) ;). It kinda made for a good testing. Bet my ISP is glad I fixed it though. --- indra/newview/llappviewer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 5d9da37c8..32501de62 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -3285,6 +3285,8 @@ bool LLAppViewer::initCache() { LL_WARNS("AppCache") << "Unable to set cache location" << LL_ENDL; gSavedSettings.setString("CacheLocation", ""); + // Keep NewCacheLocation equal to CacheLocation so we won't try to erase the cache the next time the viewer is run. + gSavedSettings.setString("NewCacheLocation", ""); } if (mPurgeCache && !read_only)