[pmwiki-devel] recipe configuration screens: best practice?
gmane at auxbuss.com
Tue Nov 28 04:37:53 CST 2006
> My question again: generally speaking, is it preferable to save
> configuration information as page text variables (within the text
> field of a page), or as separate fields in the page?
> From the perspective of a PHP programmer, I'm inclined to use
> separate fields so that I can simply ReadPage($pagename) to get all
> the variables at once, whereas PageTextVar($pagename,$varname) would
> have to be called over and over again for each variable -- very
Although I've asked Pm to confirm this in another thread - unrelated to
this thread - it looks to me that PageTextVar($pagename,$varname) caches
all the page text variables (PTVs) for a page the first time it reads a
PTV for a page. So, all PageTextVar($pagename,$varname) does on
subsequent calls for a page is:
So, in fact, it's very efficient.
More information about the pmwiki-devel