/** * Scheduled job function to index any unindexed beans. * @return bool */ function aodIndexUnindexed() { $total = 1; while ($total > 0) { $total = performLuceneIndexing(); } return true; }
/** * Scheduled job function to index any unindexed beans. * @return bool */ function aodIndexUnindexed() { $total = 1; $sanityCount = 0; while ($total > 0) { $total = performLuceneIndexing(); $sanityCount++; if ($sanityCount > 100) { return true; } } return true; }