[pmwiki-users] Speed up PmWiki / second draft
Petko Yotov
5ko at free.fr
Thu Aug 16 21:59:15 CDT 2007
On Friday 17 August 2007, Thomas Bley wrote:
> // INSTALLTION
> /*
> 0) copy staticcaches.php to <pmwiki-dir>/scripts/
>
> 1) edit scrips/stdconfig.php, replace:
> $pagename = ResolvePageName($pagename);
> with:
> $pagename = ResolvePageName($pagename);
> include_once("$FarmD/scripts/staticcaches.php");
Hi. You should really not mess with the distribution files and directories. A
user who installs such a recipe will have some trouble when upgrading to a
new version of PmWiki, or may lose your script if moving (as the dist files
are usually not backed-up).
Please change your recipe to be installed in the /cookbook/ directory and
called from a lical configuration file (config.php or farmconfig.php). For
example:
// at the very end of config.php :
$pagename = ResolvePageName($pagename);
include_once("$FarmD/cookbook/staticcaches.php");
This will do the exact same thing as what you intend above, but placed in the
right directory and without modifying any distribution files.
Thanks,
Petko
More information about the pmwiki-users
mailing list