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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user