changeset 4901:0bb73ef7cf07

added missing use of cache
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 20 Feb 2022 16:35:15 +0100
parents ea5f1c6ed07e
children df86d2505df8
files OrthancFramework/Sources/FileStorage/StorageAccessor.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/FileStorage/StorageAccessor.cpp	Sun Feb 20 16:29:33 2022 +0100
+++ b/OrthancFramework/Sources/FileStorage/StorageAccessor.cpp	Sun Feb 20 16:35:15 2022 +0100
@@ -265,6 +265,7 @@
                                     const FileInfo& info,
                                     const std::string& mime)
   {
+    if (!cache_.Fetch(sender.GetBuffer(), info.GetUuid(), info.GetContentType()))
     {
       MetricsTimer timer(*this, METRICS_READ);
       std::unique_ptr<IMemoryBuffer> buffer(area_.Read(info.GetUuid(), info.GetContentType()));