[Moin-user] Caching generated content from a parser

Thomas Waldmann tw-public at gmx.de
Fri Dec 2 22:07:27 EST 2011


>At the moment, I generate the key using self.raw (the raw data from
> the formatter) but that means that every time the data changes, a new
> cache entry is created and the old one is never removed.

Well, if one needs to reclaim the disk space, one could just kill all
the caches. Caches should not be authoritative, so they will rebuild
then automatically.

Although this is not super-clean, it is maybe much simpler than
implementing some complex thing to manage this. Especially considering
that moin2 might be very different then.

> PS I have a feeling all of this would be much easier in Moin 2, with
> its mimetype items, but I get the feeling that Moin 2 is still a
> reasonable way away from being ready for production use, so I think I
> have to stick with 1.9 for this :-(

Yes, if you need it in production mode quickly, use 1.9.
See also the hints about that on the MoinMoin2.0 wiki page.






More information about the Moin-user mailing list