[pmwiki-users] Question regarding the way a page is processed

Patrick R. Michaud pmichaud at pobox.com
Mon Sep 4 18:04:31 CDT 2006


On Mon, Sep 04, 2006 at 03:33:32PM -0700, Menachem Shapiro wrote:
> I am running pmwiki-2.0.13.
> 
> http://pmwiki.org/wiki/PmWiki/PageFileFormat describes a wiki page
> format, but does not describe how the page is parsed and displayed.
> 
> Does it work by first processing the original information saved to the
> page, and then go through every revision until the page is displayed?
> [...]
> Is my assumption of how the page is processed correct?

Close, but backwards. PmWiki actually stores the latest version of 
the markup text in the file, and this is what is normally used 
when rendering the page.  The page history keeps track of how to
reach earlier versions of the page from the latest one, and is
read only when it's needed.  

If an operation (such as viewing a page) doesn't need all of a 
page's history, PmWiki stops reading from the file when it has
everything it needs.  And the files are organized such that
the attributes and markup appear first in the file, followed
by any page history (in reverse chronological sequence).

Pm




More information about the pmwiki-users mailing list