[pmwiki-users] Group name based $XLLangs (multilanguage Wiki)?

DaveG pmwiki at solidgone.com
Sun May 22 14:14:42 CDT 2011



On 5/22/2011 3:07 PM, Peter Bowers wrote:
> ResolvePageName calls MakePageName which calls FmtPagename which calls
> PageVar which (a) calls PCache() (first problem) and (b) also calls
> PageTextVar which calls RetrieveAuthPage which normally calls
> PmWikiAuth (second problem).
>
> My recollection (I can search thru archives to confirm -- I may be
> remembering it wrong) is that the static $acache in PmWikiAuth as well
> as the general $PCache can both cause problems if they are
> called/cached early in config.php...
You are correct. Any calls to PageVar or PageTextVar cause issues with 
caching. This in turn can cause issues with cookbook include sequencing 
when they both need access to page and group names.

> Thus if I need $group or $name early on in my config.php I can either
> take a chance with $pagename without calling ResolvePageName or else
> take a chance that I will open the door to later difficulties with
> cached values (which are notoriously difficult to debug)...
Agreed. Had a lot of issues with this when creating blogit.





More information about the pmwiki-users mailing list