[pmwiki-users] Status of $EnableHTMLCache

Eemeli Aro eemeli at gmail.com
Wed Feb 25 12:59:13 CST 2009


2009/2/25 Oliver Betz <list_ob at gmx.net>:
> This caches the main contents of each page, so that PmWiki doesn't
> have to reconvert the markup to HTML on each page request.
> [...]
> If yes, why does static markup like (:noleft:) or (:title:) prevent
> from caching?

Because these markups need to be evaluated for their values to be
known, and the cache only contains the HTML for the page text,
excluding eg. any sidebar. If the cache is used, (:noleft:) is never
actually parsed, and the sidebar would be shown if the page wasn't
prevented from caching. For (:title:), the cache prevention is
actually superfluous in almost all cases; the value of $page['title']
is correct provided that it isn't set outside the actual page text (in
GroupHeader/Footer or an included page).

Caching the whole of the resulting HTML (skin and all) is another
matter entirely, but entirely possible. In fact, this is exactly what
<http://www.pmwiki.org/wiki/Cookbook/FastCache> does.

eemeli



More information about the pmwiki-users mailing list