[pmwiki-users] Speed up PmWiki

Patrick R. Michaud pmichaud at pobox.com
Tue Aug 14 16:34:51 CDT 2007


On Tue, Aug 14, 2007 at 10:04:51PM +0200, Thomas Bley wrote:
> http://pmwiki.org/wiki/PITS/00966

Quick response:

Having looked at the code in PITS.00966 -- I don't see how it's
substantially different from PmWiki's built-in HTML caching.
In particular, the code in PITS.00966 says:

    $FmtV['$PageText'] = MarkupToHTML($pagename, $text, $opt);

and later...

  if ($fp = @fopen("cache.s/$pagename,new", "x")) { 
    fwrite($fp, $FmtV['$PageText'];
    fclose($fp);
    rename("cache.s/$pagename,new", "cache.s/$pagename,cache.html");
  }

...but PmWiki already has code that does exactly this inside
of HandleBrowse.

So, I think the code that is given in PITS.00966 must be 
incomplete somehow.

I'll write a more detailed response to other comments in a later post --
I just wanted to find out what the difference is between PITS.00966
and what PmWiki already provides via $EnableHTMLCache.

Pm




More information about the pmwiki-users mailing list