From a0273902a9c58482e88c26399fec4670ade79387 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 9 Aug 2018 13:27:14 -0400 Subject: [PATCH] tuning the index cache --- citadel/modules/fulltext/serv_fulltext.c | 5 ++--- citadel/sysconfig.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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 -- 2.30.2