[dokuwiki] Re: advise_after and INDEXER_TASKS_RUN

On Tue, 16 Sep 2008 12:48:32 +0200
"Gabriel Birke" <Gabriel.Birke@xxxxxxxxx> wrote:

> Hello,
> 
> I am interested why advise_after for the INDEXER_TASKS_RUN event is
> only called when all tasks return true. Code in question is lines
> 37-45 in lib7exe/indexer.php:
> 

You have it backwards. The event is called when none of the preset tasks
return true. Doing multiple tasks would run into the PHP time limit, so
we exit when any one of them does something. Running the indexer again
on an unmodified page will return false and the next task gets a chance
to run.

So you're correct to hook after the event. You just have to be sure your
pages get visited at least five times a day.


-- tom
telliamed@xxxxxxxxxxxxx
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: