[pmwiki-devel] Pagelist Caching

Patrick R. Michaud pmichaud at pobox.com
Fri May 25 17:01:59 CDT 2007


On Fri, May 25, 2007 at 02:51:09PM -0700, Martin Fick wrote:
> --- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> > Let's see an example where the pagelist cache is
> > already doing (B): 
> >  http://www.pmwiki.org/wiki/Test/AuthList2
> ...
> > Total time for the pagelist is 3.96
> ...
> > for a total time of 1.12
> ...
> 
> I'd say it is great, that is ~ a 4X improvement.  I
> would hope that this kind of improvement will make it
> into the core.  While 4X isn't orders of magnitude, it
> certainly can make the difference between pages going
> from unusable to OK.

... it's in the core already!  (Added in beta29.)

All the site admin has to do is create a place to 
store the cache files, and set $PageListCacheDir 
to that directory.  In config.php, it's as simple as

    $PageListCacheDir = 'work.d';

In fact, the reason for the previous thread about pagelist
caching, and caching in general, was that someone had enabled
the pagelist cache on a site but didn't see a significant
improvement in pagelist speed.  (The reason, of course, is
that the pagelist had a large number of pages in the output.)

On pmwiki.org I'm using the following setting:

    if (count($_GET) < 2) $PageListCacheDir = 'work.d';

I limit it here because otherwise the cache tends to
fill up quickly with all of the search queries being
performed on pmwiki.org, but rarely hit the cache
because pmwiki.org has so many frequent updates.

Pm



More information about the pmwiki-devel mailing list