[pmwiki-users] FW: UpdatePage() vs save from ?action=edit
Peter & Melodye Bowers
pbowers at pobox.com
Mon Feb 11 09:51:53 CST 2008
> > To rephrase my question below, I am creating new pages using
> UpdatePage().
> > The pages are created, but they are not being placed in .pageindex until
> I
> > manually edit and save them. What do I need to do to bypass this manual
> > step?
>
> ?action=edit runs function HandleEdit
> HandleEdit reads the page, then calls PCache:
>
> $page = RetrieveAuthPage($pagename, $auth, true);
> ..
> PCache($pagename,$page);
> ..
> then a new page is constructed, using input from input fields,
> and UpdatePage is called, which calls all the EditFunctions.
>
> So there is no difference in EditFunctions, but an explicit call
> for PCache to cache the page.
But PCache() is a part of the *read*, correct? As I see it it only sets a
bunch of values within $PCache[$pagename]...
If I set these values by calling PCache() will they somehow then cause the
page to be written to .pageindex?
-Peter
More information about the pmwiki-users
mailing list