[pmwiki-users] Speed up PmWiki / second draft

Petko Yotov 5ko at free.fr
Thu Aug 16 22:04:26 CDT 2007


On Friday 17 August 2007, Petko Yotov wrote:
> 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.

Or, you can even place $pagename = ResolvePageName($pagename); in the 
beginning of staticcaches.php and install the recipe just by:

   // at the very end of config.php :
   include_once("$FarmD/cookbook/staticcaches.php");

Petko





More information about the pmwiki-users mailing list