Beispiel #1
0
    sendGIF();
    // send gif
}
$ID = cleanID($INPUT->str('id'));
// Catch any possible output (e.g. errors)
if (!$output) {
    ob_start();
} else {
    header('Content-Type: text/plain');
}
// run one of the jobs
$tmp = array();
// No event data
$evt = new Doku_Event('INDEXER_TASKS_RUN', $tmp);
if ($evt->advise_before()) {
    runIndexer() or runSitemapper() or sendDigest() or runTrimRecentChanges() or runTrimRecentChanges(true) or $evt->advise_after();
}
if (!$output) {
    ob_end_clean();
    if ($defer) {
        sendGIF();
    }
}
exit;
// --------------------------------------------------------------------
/**
 * Trims the recent changes cache (or imports the old changelog) as needed.
 *
 * @param media_changes If the media changelog shall be trimmed instead of
 * the page changelog
 *
 /**
  * Runs the the default function from lib/exe/indexer.php except runIndexer()
  * This lets the cron job of enhancedindexer do all the work for indexing to prevent locks
  * 
  * @param Doku_Event $event
  * @param array $param
  */
 public function preventDefaultIndexer(Doku_Event &$event, $param)
 {
     runSitemapper() or sendDigest() or runTrimRecentChanges() or runTrimRecentChanges(true) or $event->advise_after();
     $event->preventDefault();
 }