FIRE-35986: Restore using subfolders for asset cache
parent
4098a28082
commit
052d49786a
|
|
@ -328,7 +328,11 @@ void LLDiskCache::purge()
|
|||
|
||||
const std::string LLDiskCache::metaDataToFilepath(const LLUUID& id, LLAssetType::EType at)
|
||||
{
|
||||
return llformat("%s%s%s_%s_0.asset", sCacheDir.c_str(), gDirUtilp->getDirDelimiter().c_str(), CACHE_FILENAME_PREFIX.c_str(), id.asString().c_str());
|
||||
// <FS:Ansariel> Store assets in subfolders
|
||||
//return llformat("%s%s%s_%s_0.asset", sCacheDir.c_str(), gDirUtilp->getDirDelimiter().c_str(), CACHE_FILENAME_PREFIX.c_str(), id.asString().c_str());
|
||||
char id_string[36]{};
|
||||
return llformat("%s%s%c%s%s_%s_0.asset", sCacheDir.c_str(), gDirUtilp->getDirDelimiter().c_str(), id.toStringFast(id_string)[0], gDirUtilp->getDirDelimiter().c_str(), CACHE_FILENAME_PREFIX.c_str(), id.asString().c_str());
|
||||
// <FS:Ansariel>
|
||||
}
|
||||
|
||||
const std::string LLDiskCache::getCacheInfo()
|
||||
|
|
|
|||
Loading…
Reference in New Issue