[pmwiki-users] FGS and ReadAuthPage - need some help

Patrick R. Michaud pmichaud at pobox.com
Thu Apr 21 10:44:52 CDT 2005


On Thu, Apr 21, 2005 at 09:42:45AM -0500, John Feezell wrote:
> 
> I'd appreciate some input about how ReadAuthPage and READPAGE_CURRENT work 

RetrieveAuthPage is defined as:

   RetrieveAuthPage($pagename, $level, $authprompt=true, $since)

where

   $pagename   - name of page to be read
   $level      - authorization level required (read/edit/auth/upload)
   $authprompt - true if user should be prompted for a password if needed
   $since      - how much of the page history to read
                 0 == read entire page including all of history
                 READPAGE_CURRENT == read page without loading history
                 timestamp == read history only back through timestamp

The $since parameter allows PmWiki to stop reading from a page file
as soon as it has whatever information is needed -- i.e., if an operation
such as browsing isn't going to need the page's history, then specifying
READPAGE_CURRENT can result in a much faster loading time.  (This can be 
especially important for things such as searching and page listings.)

As far as why it might be impacting your code -- I dunno.  I'm not
familiar enough with FGS to know what's happening there, but I'll
take a look.  Is the copy on pmwiki.org a reasonable place to look...?

Pm



More information about the pmwiki-users mailing list