Revert "SL-14940 Fixed ignoring custom cache path"

This reverts commit 8874647858.
master
Andrey Lihatskiy 2021-03-09 21:57:32 +02:00
parent 9a1698fd84
commit 3067f56b1f
2 changed files with 2 additions and 4 deletions

View File

@ -227,7 +227,6 @@ Ansariel Hiller
SL-13858
SL-13697
SL-14939
SL-14940
Aralara Rajal
Arare Chantilly
CHUIBUG-191

View File

@ -4132,6 +4132,8 @@ bool LLAppViewer::initCache()
const unsigned int disk_cache_mb = cache_total_size_mb * disk_cache_percent / 100;
const unsigned int disk_cache_bytes = disk_cache_mb * 1024 * 1024;
const bool enable_cache_debug_info = gSavedSettings.getBOOL("EnableDiskCacheDebugInfo");
const std::string cache_dir = gDirUtilp->getExpandedFilename(LL_PATH_CACHE, cache_dir_name);
LLDiskCache::initParamSingleton(cache_dir, disk_cache_bytes, enable_cache_debug_info);
bool texture_cache_mismatch = false;
if (gSavedSettings.getS32("LocalCacheVersion") != LLAppViewer::getTextureCacheVersion())
@ -4179,9 +4181,6 @@ bool LLAppViewer::initCache()
gSavedSettings.setString("CacheLocationTopFolder", "");
}
const std::string cache_dir = gDirUtilp->getExpandedFilename(LL_PATH_CACHE, cache_dir_name);
LLDiskCache::initParamSingleton(cache_dir, disk_cache_bytes, enable_cache_debug_info);
if (!read_only)
{
if (mPurgeCache)