NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item10872: Viewing old rev of topic re-renders all images to previous size
Topic with 20 very large images. Rev 1 of the topic used
%IMAGEGALLERY{}% with the default medium thumbnail size. Rev 2 used
%IMAGEGALLERY{size="huge"}%
Viewing an older revision of the topic regenerates all of the thumbnails with the smaller size - which causes the worker on apache to run around 5 minutes of 100% cpu. Then viewing the current rev regenerates all of the thumbnails again. I'm not sure what happens if two requests simultaneously ask fro rev 1 and rev 2 of the topic - will we have dueling images in the pub/images directory?
Viewing old revisions of the topic should not be rebuilding images. Either the macro needs to be not rendered, or the images need to be rev'd as well to avoid re-rendering.
See
SupportDynamicGeneratedAttachments
--
GeorgeClark - 14 Jun 2011
Note for
DirectedGraphPlugin - which had the same issue, I changed the plugin so it does not render the macros for the diff context, or if rev not= current rev. This avoids regenerating all of the attachments on old versions.
--
GeorgeClark - 14 Jun 2011
Sounds good suppressing rendering new thumbnails in a diff context.
--
MichaelDaum - 14 Jun 2011