-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove webgateway cache #549
Conversation
webgateway_tempfile.abort(fpath) | ||
raise Http404 | ||
webgateway_cache.setOmeTiffImage(request, server_id, imgs[0], tiff_data) | ||
webgateway_tempfile.abort(fpath) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure that this line does anything now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah - I missed the unchanged fpath, rpath, fobj = webgateway_tempfile.new(...)
above, which makes more sense and explains .abort()
Good to clean up this unused code. Changes look good. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was included in the merge-ci deployment today - tested all the various rendering methods in viewers, thumbnails, plate JSON etc all working fine. Copy, Paste and Saving of rendering settings also tested. 👍
This PR removes the webgateway cache functionality for rendered images and refactors the
tempfile
functionality into its own new file.The motivation behind removing the webgateway cache is the minimal performance improvements from having the cache versus the large overhead introduced with the required cache invalidation. Tasks like applying rendering settings to a large number of images takes much longer than needed due to cache invalidation.