[pmwiki-users] blocklists, fast set-up

JB jbit at bitlink.com
Fri Nov 17 15:21:21 CST 2006


* Sandy wrote, On 11/17/2006 8:11 AM:
>>> Trying to get blocklist going. tried

I think that if some files already existed then
it might appear like the blocklist routines were
not working.  This is because of my own confusion
as to how this worked and the setting of
variable $BlocklistDownloadRefresh.  I set it to
5 seconds so it would try to update every time I
ran the wiki.

Here is a snippet of my farmconfig.php
###############################################
# setup farm-wide shared directory
$FarmPubDirUrl = 'http://gnuzoo.org/farm/pub';
$LockFile = "$FarmD/shared.d/.flock";
$WikiLibDirs = array(
       &$WikiDir,
       new PageStore('$FarmD/shared.d/$FullName', 1),
       new PageStore('$FarmD/wikilib.d/$FullName'));
###############################################
# download blocklist automatically
$EnableBlocklist = 10;
$EnableWhyBlocked = 1;
$BlocklistDownloadRefresh = 86400 / 2;
# download from pmwiki Site.Blocklist too
$BlocklistDownload['Site.Blocklist-PmWiki'] =
     array('format' => 'pmwiki');
###############################################

I manually create these pages in the local wiki

     Site.Blocklist
     Site.Blocklist-Farm

When I first run the wiki it automatically
creates 3 pages in the local wiki.d.

     Site.Blocklist-Chongqed
     Site.Blocklist-MoinMaster
     Site.Blocklist-PmWiki

I then move these 4 pages to the shared directory
so they are shared farm-wide.

     Site.Blocklist-Farm
     Site.Blocklist-Chongqed
     Site.Blocklist-MoinMaster
     Site.Blocklist-PmWiki

It works for me.



Thanks,

John





More information about the pmwiki-users mailing list