diff OrthancFramework/Sources/Cache/MemoryStringCache.cpp @ 5427:111e21b4f8bc

fix transcoded instance caching
author Alain Mazy <am@osimis.io>
date Fri, 17 Nov 2023 08:22:17 +0100
parents c65e036d649b
children 4be5f117aa0d
line wrap: on
line diff
--- a/OrthancFramework/Sources/Cache/MemoryStringCache.cpp	Thu Nov 16 16:09:04 2023 +0100
+++ b/OrthancFramework/Sources/Cache/MemoryStringCache.cpp	Fri Nov 17 08:22:17 2023 +0100
@@ -206,24 +206,6 @@
   }
 
 
-  void MemoryStringCache::InvalidateByPrefix(const std::string& keyPrefix)
-  {
-    std::vector<std::string> allKeys;
-
-    {
-      boost::mutex::scoped_lock cacheLock(cacheMutex_);
-      content_.GetAllKeys(allKeys);
-    }
-
-    for (std::vector<std::string>::const_iterator it = allKeys.begin(); it != allKeys.end(); ++it)
-    {
-      if (it->find(keyPrefix) == 0)
-      {
-        Invalidate(*it);
-      }
-    }
-  }
-
   bool MemoryStringCache::Fetch(std::string& value,
                                 const std::string& key)
   {