[pmwiki-users] Pagelists caching

Patrick R. Michaud pmichaud at pobox.com
Thu May 17 08:15:14 CDT 2007


On Thu, May 17, 2007 at 10:47:13AM +0200, Christophe David wrote:
>    With the following settings
> 
>    $PageCacheDir              = ' cache.d';
>    $PageListCacheDir         = $PageCacheDir;
>    $EnableHTMLCache       = 1;
>    $EnablePageListProtect  = 0;
> 
>    I would expect the result page to be cached too when the page contains
>    nothing else than the pagelist markup.
> 
>    Any clue ?

Are other pages being HTML-cached, and it's just the pagelist
page that isn't?

AFAICT the output of pagelist should be HTML-cached, but it's
entirely possible I'm overlooking something.  I'll check into it
a bit more...

>      If you see "PageListCache begin save key=..." in the output, that
>      If you see "PageListCache begin load key=..." in the output, that
> 
>    All this seems to work as expected.  As you anticipated, the time appears
>    to be spent in the processing of the template.

>    00.30 PageListSources end count=2004
>    00.30 PageListSort pre ret=6 order=$:_city
>    00.30 MakePageList items count=2004, filters=PageListSort
>    01.19 MakePageList post count=2004, readc=2004

FWIW, on pmwiki.org I was able to optimize things to eliminate
this last step, where it ends up reading the pages unnecessarily.
So, in the next release of PmWiki you'll end up saving 0.89 seconds
here.  :-)

Also, is it necessary to display all of the records in the
output?  If you can get away with displaying only the first
100 or 1000, you'd probably save a ton of time.

Lastly, if you can post a copy of the pagelist template you're
using, I might be able to find some optimizations there.

Thanks!

Pm



More information about the pmwiki-users mailing list