<div dir="ltr"><div>Have you looked at the "FastCache" recipe? <a href="http://www.pmwiki.org/wiki/Cookbook/FastCache">http://www.pmwiki.org/wiki/Cookbook/FastCache</a><br><br></div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>-Michael Paulukonis<br><a href="http://www.xradiograph.com" target="_blank">http://www.xradiograph.com</a><br><a href="http://goog_2112721603" target="_blank"></a><a href="http://www.xradiograph.com/interference" target="_blank">Interference Patterns (a blog)</a><br><a href="https://twitter.com/XraysMonaLisa" target="_blank">@XraysMonaLisa</a><br><a href="http://michaelpaulukonis.com" target="_blank">http://michaelpaulukonis.com</a><br><br>Sent from somewhere in the Cloud<br>(hearthrug, by the fender)<br></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Nov 27, 2015 at 5:05 AM, Hans <span dir="ltr"><<a href="mailto:design1@softflow.uk" target="_blank">design1@softflow.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is a developer question:<br>
<br>
I am working on a recipe to create static HTML pages from within<br>
PmWiki. The purpose is to have a "mirror" of a wiki site as static<br>
pages to be served to the public, as the saving of dynamic PHP pages<br>
is taking too long now on the shared hosting site I am using (10 to 15<br>
seconds for one page, compared to about 1 second for a static HTML<br>
page).<br>
<br>
I can create a satisfactory single HTML page via a custom<br>
action, or as part of the normal page update via $EditFunctions.<br>
When I want to create multiple HTML pages in one go via another custom<br>
action, my function is calling the single-page HTML export function<br>
repeatedly, which is nearly satisfactory, but not quite.<br>
<br>
The problem is that page variables are getting evaluated only once,<br>
for the page first calling the handler function. Is there a way to<br>
make PmWiki "restart" after every page processed, to evaluate page<br>
variables fresh for every page, some kind of batch mode?<br>
I cannot see this in the code, so would be very grateful for some<br>
hints!<br>
<br>
Perhaps I can add a second question here:<br>
The exported static HTML pages are only meant for general public view,<br>
i.e. corresponding to a site visitor having "read" authorisation, not<br>
any "edit" authorisation. The page look is accordingly, without any<br>
"action" links and toolbars etc. The two custom actions for single and<br>
multiple HTML page export need "edit" or "admin" authorisation.<br>
It would be very useful, when the HTML export function is running, to<br>
have it process the page as if it is read-only, but the function is<br>
running with "edit" or "admin" authorisation. Can this be possible?<br>
<br>
This would be useful, because one would not need to insert<br>
custom conditional markup into wiki pages, to suppress the page parts<br>
which are for editors or admins only.<br>
<br>
Thanks for any input to this!<br>
I hope to release this recipe script soon, so perhaps others may find it<br>
useful.<br>
<br>
Best regards,<br>
 Hans<br>
mailto:<a href="mailto:design1@softflow.uk">design1@softflow.uk</a><br>
<a href="http://www.softflow.co.uk" rel="noreferrer" target="_blank">www.softflow.co.uk</a><br>
<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br></div>