Пример #1
0
/**
 * Scheduled job function to index any unindexed beans.
 * @return bool
 */
function aodIndexUnindexed()
{
    $total = 1;
    while ($total > 0) {
        $total = performLuceneIndexing();
    }
    return true;
}
Пример #2
0
/**
 * 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;
}