[pmwiki-users] Pagelists caching

Patrick R. Michaud pmichaud at pobox.com
Wed May 16 12:47:03 CDT 2007


On Wed, May 16, 2007 at 07:32:14PM +0200, Christophe David wrote:
>      Correct -- there's a difference between caching the HTML output,
>      and caching the results of a pagelist.
> 
>    I made some more tests with the following pagelist :
> 
>    (:pagelist group=RCB name=RCB?* list=normal order=$:_city fmt=#RCB_city:)
> 
>    The pagelist returns about 2.500 pages.
>
>    Even if I just hit F5 to refresh the page containing the pagelist, it
>    takes the same time as when there is no cache.

With 2,500 pages, the overall cost is likely to be in processing
the pagelist template on 2,500 pages, as opposed to determining
the pages to be in the list.  The pagelist cache won't help much
here.

>    Could there be something that causes the cache to be created but not used
>    ?

You can find out where things are taking up all of the time
(and if the cache is being used) by setting:

    $EnableStopWatch = 1;
    $HTMLFooterFmt['stopwatch'] = 'function:StopWatchHTML 1';

This will display various timings at the bottom of each page, similar
to what is done for pages in the Test group on pmwiki.org.

If you see "PageListCache begin save key=..." in the output, that
says that the pagelist function regenerated the list and saved it
to the cache directory.

If you see "PageListCache begin load key=..." in the output, that
means that PmWiki was able to load the pagelist from the cache.

I'll post an example in a followup message to this one.

If you can send me the url to the pages (apologies if you already 
said this isn't possible), or send me a copy of the stopwatch results 
you're getting, I can tell you if the cache is being used and 
what is taking PmWiki so long to generate the results.

Pm



More information about the pmwiki-users mailing list