FIRE-2780 (VWR-25862): Fixing the mask for cache clearing
parent
8ba5d9cdd4
commit
b51c3f394b
|
|
@ -3789,14 +3789,12 @@ bool LLAppViewer::initCache()
|
|||
dir = gDirUtilp->getExpandedFilename(LL_PATH_CACHE,"");
|
||||
|
||||
std::string mask;
|
||||
mask = gDirUtilp->getDirDelimiter();
|
||||
mask += VFS_DATA_FILE_BASE;
|
||||
mask = VFS_DATA_FILE_BASE;
|
||||
mask += "*";
|
||||
|
||||
gDirUtilp->deleteFilesInDir(dir, mask);
|
||||
|
||||
mask = gDirUtilp->getDirDelimiter();
|
||||
mask += VFS_INDEX_FILE_BASE;
|
||||
mask = VFS_INDEX_FILE_BASE;
|
||||
mask += "*";
|
||||
|
||||
gDirUtilp->deleteFilesInDir(dir, mask);
|
||||
|
|
@ -3865,7 +3863,7 @@ void LLAppViewer::purgeCache()
|
|||
LL_INFOS("AppCache") << "Purging Cache and Texture Cache..." << llendl;
|
||||
LLAppViewer::getTextureCache()->purgeCache(LL_PATH_CACHE);
|
||||
LLVOCache::getInstance()->removeCache(LL_PATH_CACHE);
|
||||
std::string mask = gDirUtilp->getDirDelimiter() + "*.*";
|
||||
std::string mask = "*.*";
|
||||
gDirUtilp->deleteFilesInDir(gDirUtilp->getExpandedFilename(LL_PATH_CACHE,""),mask);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1513,7 +1513,7 @@ void LLTextureCache::purgeAllTextures(bool purge_directories)
|
|||
{
|
||||
const char* subdirs = "0123456789abcdef";
|
||||
std::string delem = gDirUtilp->getDirDelimiter();
|
||||
std::string mask = delem + "*";
|
||||
std::string mask = "*";
|
||||
for (S32 i=0; i<16; i++)
|
||||
{
|
||||
std::string dirname = mTexturesDirName + delem + subdirs[i];
|
||||
|
|
|
|||
|
|
@ -341,7 +341,7 @@ void LLVOCache::removeCache(ELLPath location)
|
|||
llinfos << "about to remove the object cache due to settings." << llendl ;
|
||||
|
||||
std::string delem = gDirUtilp->getDirDelimiter();
|
||||
std::string mask = delem + "*";
|
||||
std::string mask = "*";
|
||||
std::string cache_dir = gDirUtilp->getExpandedFilename(location, object_cache_dirname);
|
||||
llinfos << "Removing cache at " << cache_dir << llendl;
|
||||
gDirUtilp->deleteFilesInDir(cache_dir, mask); //delete all files
|
||||
|
|
@ -363,7 +363,7 @@ void LLVOCache::removeCache()
|
|||
llinfos << "about to remove the object cache due to some error." << llendl ;
|
||||
|
||||
std::string delem = gDirUtilp->getDirDelimiter();
|
||||
std::string mask = delem + "*";
|
||||
std::string mask = "*";
|
||||
llinfos << "Removing cache at " << mObjectCacheDirName << llendl;
|
||||
gDirUtilp->deleteFilesInDir(mObjectCacheDirName, mask);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue