[dokuwiki] Re: Media or Cache
- From: Jason Grout <jason-doku@xxxxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 27 Jul 2007 12:02:09 -0600
Anika Henke wrote:
Hallo!
Tankko wrote:
Can someone help me with this question? Where is the preferred place
to store images that are generated by plugins? These images are
completely regeneratable, so it seems that storing them in the Media
folders isn't the best solution. Should they be stored in the cache?
Ideally they would be purged after X days and rebuilt as needed.
I am no expert in this, but I think putting the images directly into the
cache folder is not a good idea. Then they would be twice in there ...
The solution for my abc plugin (which generates images as well) is the
following:
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.
I can do that, because each ABC source has its own title. And the
Graphviz plugin probably does not do that, because there is no title.
But you could enhance the plugin by adding one, like "<graphviz
neato|title>" ...
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?
Jason
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: Media or Cache
- From: Anika Henke
- References:
- [dokuwiki] Media or Cache
- From: Tankko
- [dokuwiki] Re: Media or Cache
- From: Tankko
- [dokuwiki] Re: Media or Cache
- From: Anika Henke
Other related posts:
- » [dokuwiki] Media or Cache
- » [dokuwiki] Re: Media or Cache
- » [dokuwiki] Re: Media or Cache
- » [dokuwiki] Re: Media or Cache
- » [dokuwiki] Re: Media or Cache
- » [dokuwiki] Re: Media or Cache
Hallo! Tankko wrote:
Can someone help me with this question? Where is the preferred place to store images that are generated by plugins? These images are completely regeneratable, so it seems that storing them in the Media folders isn't the best solution. Should they be stored in the cache? Ideally they would be purged after X days and rebuilt as needed.
I am no expert in this, but I think putting the images directly into the cache folder is not a good idea. Then they would be twice in there ...
The solution for my abc plugin (which generates images as well) is the following: 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. I can do that, because each ABC source has its own title. And the Graphviz plugin probably does not do that, because there is no title. But you could enhance the plugin by adding one, like "<graphviz neato|title>" ...
- [dokuwiki] Re: Media or Cache
- From: Anika Henke
- [dokuwiki] Media or Cache
- From: Tankko
- [dokuwiki] Re: Media or Cache
- From: Tankko
- [dokuwiki] Re: Media or Cache
- From: Anika Henke