Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
thumbnail: Disable libvips cache.
Alex Vandiver3ac14632d804
diff --git a/zerver/lib/thumbnail.py b/zerver/lib/thumbnail.pyindex a599e0323a4..ac14a4fe342 100644--- a/zerver/lib/thumbnail.py+++ b/zerver/lib/thumbnail.py@@ -132,6 +132,10 @@ pyvips.operation_block_set("VipsForeignLoadTiff", False) # image/tiffpyvips.operation_block_set("VipsForeignLoadWebp", False) # image/webppyvips.block_untrusted_set(True)+# Disable the operations cache; our only use here is thumbnail_buffer,+# which does not make use of it.+pyvips.voperation.cache_set_max(0)+class BadImageError(JsonableError):code = ErrorCode.BAD_IMAGE