From: Art Cancro Date: Thu, 9 Aug 2018 17:27:14 +0000 (-0400) Subject: tuning the index cache X-Git-Tag: v939~361 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a0273902a9c58482e88c26399fec4670ade79387 tuning the index cache --- diff --git a/citadel/modules/fulltext/serv_fulltext.c b/citadel/modules/fulltext/serv_fulltext.c index 40645a294..4fced5e28 100644 --- a/citadel/modules/fulltext/serv_fulltext.c +++ b/citadel/modules/fulltext/serv_fulltext.c @@ -256,7 +256,6 @@ void do_fulltext_indexing(void) { /* * 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, @@ -266,10 +265,10 @@ void do_fulltext_indexing(void) { ); 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. + * Silently return if our fulltext index is up to date with new messages. */ if ( (CtdlGetConfigLong("MMfulltext") >= CtdlGetConfigLong("MMhighest")) diff --git a/citadel/sysconfig.h b/citadel/sysconfig.h index 871fdd11b..068ad88da 100644 --- a/citadel/sysconfig.h +++ b/citadel/sysconfig.h @@ -95,4 +95,4 @@ * How many messages may the full text indexer scan before flushing its * tables to disk? */ -#define FT_MAX_CACHE 2500 +#define FT_MAX_CACHE 25