[pmwiki-users] HtmlCache, Internationalizazion, layout problem
Thomas Bley
thbley at gmail.com
Wed Jul 19 11:12:18 CDT 2006
Hi,
> Also there are some calls like SetProperty($pagename, 'description',
> > PSS('$1'), ' ')) done from MarkupToHTML(), SetProperty calls NoCache,
> > this disables htmlCaching.
>
>
> SetProperty currently has to do a NoCache() because otherwise
> the <title>, <meta content='keywords' ... />, and
> <meta content='description' ... /> header tags won't be rendered
> in the <head> section of the document.
>
>
So if I only cache the contents of the pagename (sth inside <body>),
what have the <head>-tags to do with caching ?
> It's often easier to simply compare against the $LastModTime
> variable (which contains the time that *any* page or configuration file
> on the site has been modified). This avoids regenerating the page each
> hour for no reason.
>
>
That's a good idea, but maybe adding the group to .lastmod makes it
better ? (using "$WorkDir/$Group.lastmod")
Ok, checked the code, caches.php seems to be included very early
(changes in the skin don't affect lastmod):
Maybe including skins.php before caches.php ?
H:\Development\Apache2mini\htdocs\pm_src\index.php [1] =>
H:\Development\Apache2mini\htdocs\pm_src\pmwiki.php [2] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\version.php [3] =>
H:\Development\Apache2mini\htdocs\pm_src\config.php [4] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\xlpage-utf-8.php [5] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\stdconfig.php [6] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\pgcust.php [7] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\robots.php [8] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\caches.php [9] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\author.php [10] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\prefs.php [11] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\simuledit.php [12] =>
H:\Development\Apache2mini\htdocs\pm_src\scripts\skins.php [13] =>
H:\Development\Apache2mini\htdocs\pm_src\pub\skins\light\light.php [14] =>
H:\Development\Apache2mini\htdocs\pm_src\pub\skins\light\lightviews.php
[15] =>
...
I think "$SkinDir/$Skin.tmpl" and "$SkinDir/skin.tmpl" should also be
considered for $LastModTime ?
A good thing would be to make $LastModFile an array that can be changed
in config.php: That way I could override .lastmod with
array($pagename,"Main.Sidebar")
bye
Thomas
More information about the pmwiki-users
mailing list