Skip to content

Commit

Permalink
Set LUT cache timeout to None (no timeout)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-TBT authored Oct 22, 2024
1 parent 3483e04 commit 84b14b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 84b14b3

Please sign in to comment.