From aae7259a0adaddb4b2d9a2a62a0d4ff95fe5e2b3 Mon Sep 17 00:00:00 2001
From: Callum Prentice <callum@gmail.com>
Date: Tue, 27 Oct 2020 14:02:24 -0700
Subject: [PATCH] Fix for meta issue:  SL-14210 Prune descriptive tag from new
 cache filenames

---
 indra/llfilesystem/lldiskcache.cpp | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/indra/llfilesystem/lldiskcache.cpp b/indra/llfilesystem/lldiskcache.cpp
index efe5e7092c4..91fc1b15d1a 100644
--- a/indra/llfilesystem/lldiskcache.cpp
+++ b/indra/llfilesystem/lldiskcache.cpp
@@ -187,8 +187,12 @@ const std::string LLDiskCache::metaDataToFilepath(const std::string id,
     file_path << id;
     file_path << "_";
     file_path << (extra_info.empty() ? "0" : extra_info);
-    file_path << "_";
-    file_path << assetTypeToString(at);
+    //file_path << "_";
+    //file_path << assetTypeToString(at); // see  SL-14210 Prune descriptive tag from new cache filenames
+                                          // for details of why it was removed. Note that if you put it
+                                          // back or change the format of the filename, the cache files
+                                          // files will be invalidated (and perhaps, more importantly,
+                                          // never deleted unless you delete them manually).
     file_path << ".asset";
 
     return file_path.str();
-- 
GitLab