[dokuwiki] Re: Media or Cache

Jason Grout wrote:
Anika Henke wrote:

I put the images into a special folder in the media folder (media/plugin_abc) and further divided into their according namespaces. But each image has a (more or less unique) name, which stays the same name when re-generated (which is differently from the Graphviz plugin)! It gets simply overwritten.

How do you handle when one person looks at a previous version of the page while another person looks at the current version? How does the previous version of a generated image be seen and the current version be seen, at the same time?

Good question! ;-)

I decided against showing any image at all in previous versions, I simply render the source with $renderer->file().

But as displaying the images is more important when previewing the page, I simply put an "x" in front of each image (which, in my case, otherwise always begin with a number). Normally, there cannot be more than one person previewing the page. So, the maximum number of images generated from one source is two. One for "show" and one for "preview" mode.

Anika

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: