FIRE-35986: Restore using subfolders for asset cache

master
Ansariel 2025-10-03 15:49:56 +02:00
parent 4098a28082
commit 052d49786a
1 changed files with 5 additions and 1 deletions

View File

@ -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()