- * Make sure we don't run the indexer too frequently.
- * FIXME move the setting into config
- */
- if ( (time(NULL) - last_index) < 300L) {
- return;
- }
-
- /*
- * Check to see whether the fulltext index is up to date; if there
- * are no messages to index, don't waste any more time trying.
- */
- if (
- (CtdlGetConfigLong("MMfulltext") >= CtdlGetConfigLong("MMhighest"))
- && (CtdlGetConfigInt("MM_fulltext_wordbreaker") == FT_WORDBREAKER_ID)
- ) {
- return; /* nothing to do! */
- }
-
- /*
- * If we've switched wordbreaker modules, burn the index and start
- * over.