218
218
srv->srvconf.stat_cache_engine = STAT_CACHE_ENGINE_SIMPLE;
219
219
} else if (buffer_is_equal_string(stat_cache_string, CONST_STR_LEN("simple"))) {
220
220
srv->srvconf.stat_cache_engine = STAT_CACHE_ENGINE_SIMPLE;
221
222
} else if (buffer_is_equal_string(stat_cache_string, CONST_STR_LEN("fam"))) {
222
223
srv->srvconf.stat_cache_engine = STAT_CACHE_ENGINE_FAM;
223
225
} else if (buffer_is_equal_string(stat_cache_string, CONST_STR_LEN("disable"))) {
224
226
srv->srvconf.stat_cache_engine = STAT_CACHE_ENGINE_NONE;
226
228
log_error_write(srv, __FILE__, __LINE__, "sb",
227
"server.stat-cache-engine can be one of \"disable\", \"simple\", \"fam\", but not:", stat_cache_string);