[Pmwiki-users] Cache system with PmWiki

Patrick R. Michaud pmichaud
Fri Sep 10 19:16:30 CDT 2004


On Sat, Sep 11, 2004 at 02:58:42AM +0200, Thomas -Balu- Walter wrote:
> On Fri, Sep 10, 2004 at 06:55:02AM -0600, Patrick R. Michaud wrote:
> > Actually, one of the things that currently takes a fair bit of time 
> > is the fact that PmWiki reads a page's entire history into memory
> > even if it's not going to be used.  The page history needs to be read
> > for post, diff, and restore operations, but not much else.  So I'm
> > planning to modify the page storage so the history is written
> > last, and so there's an option to read a page without reading its
> > history.  One PmWiki user reported that this provided a significant
> > (factor of 10x) speed up in displaying pages.
> 
> I am a little tired as it is 03:00 right now, but I just thought why we
> don't store the history in different files - same filename plus
> extension or similar. 

It's easy enough to store the data sorted in a single file and get back 
only the parts desired.  In fact, ReadPage is likely to earn another
argument saying "read back until xxx date", so that even when doing
a page history or restore we only get back as much of the history as
needed to process the data instead of the entire history...

> If we do this for every revision man Wikis will hit the magic max number
> of files in a directory probably.

PmWiki 1.0 already has a way around this -- indeed, this is how we're
doing it on the TAMUCC wiki which currently has over 35,000 pages
(directories are limited to 32K pages) ...

Pm



More information about the pmwiki-users mailing list