- * Make sure we don't run the indexer too frequently.
- * FIXME move the setting into config
- time_t now = time(NULL);
- if ( (now - last_index) < 300L) {
- syslog(LOG_DEBUG,
- "fulltext: indexing interval not yet reached; last run was %ldm%lds ago",
- ((now - last_index) / 60),
- ((now - last_index) % 60)
- );
- return;
- }
- */
-
- /*
- * Silently return if our fulltext index is up to date with new messages.
- */
- 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.