From a0b57c0cd7621fa8575d8f05eaa958323aa106fc Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Tue, 29 Aug 2017 16:45:29 +0300 Subject: SL-776 Disk cache purge not purging headers if headers are corrupt or on version mismatch --- indra/newview/lltexturecache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/lltexturecache.cpp b/indra/newview/lltexturecache.cpp index 8b90a0a737..e8b3842ae5 100644 --- a/indra/newview/lltexturecache.cpp +++ b/indra/newview/lltexturecache.cpp @@ -1615,9 +1615,9 @@ void LLTextureCache::purgeAllTextures(bool purge_directories) gDirUtilp->deleteFilesInDir(dirname, mask); } } + gDirUtilp->deleteFilesInDir(mTexturesDirName, mask); // headers, fast cache if (purge_directories) { - gDirUtilp->deleteFilesInDir(mTexturesDirName, mask); LLFile::rmdir(mTexturesDirName); } } -- cgit v1.2.3