[dokuwiki] Re: Media or Cache
- From: Anika Henke <a.c.henke@xxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 27 Jul 2007 12:52:33 +0200
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>" ...
Anika
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: Media or Cache
- From: Jason Grout
- References:
- [dokuwiki] Media or Cache
- From: Tankko
- [dokuwiki] Re: Media or Cache
- From: Tankko
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
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.
- [dokuwiki] Re: Media or Cache
- From: Jason Grout
- [dokuwiki] Media or Cache
- From: Tankko
- [dokuwiki] Re: Media or Cache
- From: Tankko