Affects Version/s: 1.5.2
Fix Version/s: None
RenderedDynamicImageResource ignores all cache settings and keeps its image data once it has been rendered. This is not very useful for tasks like rendering statistics which will be reloaded often but with identical parameters, yet still need to show updated charts.
Ideally, RenderedDynamicImageResource's getImageData() method should check these cache settings, however, they are not available at that point – please correct me if I'm wrong here.
Another option would be to simply change getImageData()'s behavior to not cache anything. That might break existing code though, so I think we shouldn't do that right now.
As a fallback I propose adding a NonCachingRenderedDynamicImageResource that prevents caching. This can then be used as a drop-in replacement for the regular RDIR whenever caching should be avoided.
|Field||Original Value||New Value|
|Attachment||0001-WICKET-4131-Add-NonCachingRenderedDynamicImageResour.patch [ 12499017 ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Later [ 7 ]|