Commit 42ce6031 authored by Sebastien Jourdain's avatar Sebastien Jourdain Committed by Kitware Robot
Browse files

Merge topic 'vtk-web-invalidate-cache-from-stream'

eaeac822

 Allow BinaryStream to invalidate image cache
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1891
parents bcb647d9 eaeac822
Pipeline #24158 failed with stage
in 0 seconds
......@@ -364,6 +364,11 @@ class ImagePushBinaryWebSocketServerProtocol(WebSocketServerProtocol):
if viewId not in self.viewToCapture:
self.viewToCapture[viewId] = { 'quality': 100, 'enabled': True, 'view': self.helper.getView(viewId), 'view_id': viewId, 'mtime': 0 }
if 'invalidate_cache' in request:
if self.viewToCapture[viewId]['view']:
self.app.InvalidateCache(self.viewToCapture[viewId]['view'].SMProxy)
self.render()
else:
# Update fields
objToUpdate = self.viewToCapture[viewId]
for key in request:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment