aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/config.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-09-11 09:21:50 -0400
committerGitHub <[email protected]>2023-09-11 15:21:50 +0200
commit4d54de153862bfe21997afe83195b879de01e749 (patch)
tree900104616727d41af93e4825b80f0ff2e953e71c /src/zenserver/config.cpp
parentbetter sorting of attachments in oplog blocks (#390) (diff)
downloadzen-4d54de153862bfe21997afe83195b879de01e749.tar.xz
zen-4d54de153862bfe21997afe83195b879de01e749.zip
add `cache-write-log` and `cache-access-log“ configuration options (#394)
* add `cache-write-log` and `cache-access-log“ configuration options
Diffstat (limited to 'src/zenserver/config.cpp')
-rw-r--r--src/zenserver/config.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp
index 1f5a3eb21..7ec3a0cee 100644
--- a/src/zenserver/config.cpp
+++ b/src/zenserver/config.cpp
@@ -804,6 +804,8 @@ ParseConfigFile(const std::filesystem::path& Path,
////// cache
LuaOptions.AddOption("cache.enable"sv, ServerOptions.StructuredCacheEnabled);
+ LuaOptions.AddOption("cache.writelog"sv, ServerOptions.StructuredCacheWriteLogEnabled);
+ LuaOptions.AddOption("cache.accesslog"sv, ServerOptions.StructuredCacheAccessLogEnabled);
////// cache.upstream
LuaOptions.AddOption("cache.upstream.policy"sv, ServerOptions.UpstreamCacheConfig.CachePolicy, "upstream-cache-policy"sv);
@@ -1188,6 +1190,20 @@ ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions)
cxxopts::value<std::string>(ServerOptions.UpstreamCacheConfig.HordeConfig.Url)->default_value(""),
"");
+ options.add_option("cache",
+ "",
+ "cache-write-log",
+ "Whether cache write log is enabled",
+ cxxopts::value<bool>(ServerOptions.StructuredCacheWriteLogEnabled)->default_value("true"),
+ "");
+
+ options.add_option("cache",
+ "",
+ "cache-access-log",
+ "Whether cache access log is enabled",
+ cxxopts::value<bool>(ServerOptions.StructuredCacheAccessLogEnabled)->default_value("true"),
+ "");
+
options.add_option("compute",
"",
"upstream-horde-oauth-url",