[pmwiki-users] pagelists link= with pages generated externally

Patrick R. Michaud pmichaud at pobox.com
Tue May 22 23:34:29 CDT 2007


On Wed, May 23, 2007 at 12:14:01AM +0200, Petko Yotov wrote:
> On Tuesday 22 May 2007 23:33, Patrick R. Michaud wrote:
> > Also, it would help to know which you think is more important:
> >
> >    - getting an "import feature" to work
> >    - getting pagelist to work properly with HTML caching
> >
> Oh, certainly (2) will benefit immediately to more sites, even those that do 
> not "import" externally generated pages.

I did some more testing on HTML caching, and here's what I found...

First, there's nothing about (:pagelist:) that causes HTML caching to
not work.  It works fine.

However, the $EnableDrafts capability was always disabling the HTML cache,
as well as any recipes that happen to call the CondAuth() function.

I've now fixed this in pmwiki-2.2.0-beta50, just released.  

An example page with HTML caching enabled is at
http://www.pmwiki.org/wiki/Test/HTMLCache .  On this page you can try
different markups (including pagelist) and see the resulting
effect on caching.  For long pagelists, it's pretty dramatic.

If the stopwatch at the bottom of the page says something like 
"HandleBrowse: caching page", then that means that PmWiki is 
saving the page's HTML in the cache.  If the stopwatch
says "HandleBrowse: using cached copy", that means that it is
using the cached copy of the page instead of rendering it again.

One can also look at the HTML source -- if it contains the string
"<!--cached-->" then you know that the HTML was coming from the cache
as opposed to being rendered.

Questions, comments welcome.

Pm



More information about the pmwiki-users mailing list