changeset 6915:ff30e25e081e streaming

comment
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jun 2026 21:52:59 +0200
parents 689d73b259f1
children 188a17e5b03c
files OrthancServer/Sources/ServerContext.cpp
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp	Tue Jun 02 18:31:10 2026 +0200
+++ b/OrthancServer/Sources/ServerContext.cpp	Tue Jun 02 21:52:59 2026 +0200
@@ -843,6 +843,14 @@
                                  FileContentType type,
                                  const std::string& customData)
   {
+    /**
+     * Note that it is not necessary to explicitly invalidate the
+     * cache after the removal of an attachment, as each attachment
+     * receives a unique UUID in ServerContext::CreateFile(), even if
+     * the DICOM instance is overwritten. The key of the removed
+     * attachment will thus never be seen again as new files are added.
+     **/
+
     MetricsRegistry::Timer timer(*metricsRegistry_, METRICS_STORAGE_AREA_REMOVE_DURATION);
     area_.Remove(fileUuid, type, customData);
   }