From 84b14b3411ddf4cf97060994ee4f9e5158897139 Mon Sep 17 00:00:00 2001 From: Tom Boissonnet Date: Tue, 22 Oct 2024 11:19:06 +0200 Subject: [PATCH] Set LUT cache timeout to None (no timeout) --- omeroweb/webgateway/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omeroweb/webgateway/views.py b/omeroweb/webgateway/views.py index df860ccee6..655b230ec1 100644 --- a/omeroweb/webgateway/views.py +++ b/omeroweb/webgateway/views.py @@ -2179,8 +2179,8 @@ def luts_png(request, conn=None, **kwargs): buffer.seek(0) # Cache the image using the version-based key - # Cache timeout shouldn't be too low, lut png generation takes time - cache.set(cache_key, buffer.getvalue(), 3600) + # Cache timeout set to None (no timeout) + cache.set(cache_key, buffer.getvalue(), None) return HttpResponse(buffer.getvalue(), content_type="image/png")