[dokuwiki] Re: advise_after and INDEXER_TASKS_RUN

  • From: "Gabriel Birke" <Gabriel.Birke@xxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Wed, 17 Sep 2008 09:40:35 +0200

> > 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.

You're right, I confused the short-circuiting behavior of "or" with that of
"and". 
I shouldn't post to the list before having my coffee :-(

Greetings,

Gabriel

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: