[pmwiki-users] Problem in searches in 2.1.5
Patrick R. Michaud
pmichaud at pobox.com
Sat Oct 7 13:19:07 CDT 2006
On Sat, Oct 07, 2006 at 08:00:45PM +0200, Joachim Durchholz wrote:
> Patrick R. Michaud schrieb:
> > We could potentially put the stale marker outside of the page file --
> > for example, having a ".stalepages" file or separate files named
> > "Group.PageName.stale" that indicate stale pages ... but somehow
> > this seems overly hackish to me.
>
> The information could be placed in the .pageindex file.
> Possibly by simply appending page names, to avoid having to read&write
> everything.
If an external app is going to be modifying .pageindex, it needs
to be participating in PmWiki's locking schemes. Otherwise its
changes could be lost, or it could end up corrupting the index
entirely.
Another option would be to follow an idea from the "POP3 to Wiki"
thread, and to have a "drop directory" where text files and/or
page files could be placed for automatically being updated
into the wiki. An external application could then simply place
its updates into the drop directory, and PmWiki would take
care of throwing them into wiki.d/ and doing all of the related
updates (including the pageindex).
Another option might be to simply provide an ?action=index, which
does quick timestamp checks between the index and the files to
throw out any outdated entries. Then an automated script that is
modifying files in wiki.d/ would simply call PmWiki with ?action=index
to purge/update any inconsistent entries from the pageindex
without having to throw it out entirely.
Pm
More information about the pmwiki-users
mailing list