diff options
Diffstat (limited to 'wsd/LOOLWSD.cpp')
-rw-r--r-- | wsd/LOOLWSD.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index 57c635238..9d3c62fe3 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -553,6 +553,7 @@ static std::string UnitTestLibrary; unsigned int LOOLWSD::NumPreSpawnedChildren = 0; std::atomic<unsigned> LOOLWSD::NumConnections; +bool LOOLWSD::TileCachePersistent = true; std::unique_ptr<TraceFileWriter> LOOLWSD::TraceDumper; /// This thread polls basic web serving, and handling of @@ -610,6 +611,7 @@ void LOOLWSD::initialize(Application& self) // Add default values of new entries here. static const std::map<std::string, std::string> DefAppConfig = { { "tile_cache_path", LOOLWSD_CACHEDIR }, + { "tile_cache_persistent", "true" }, { "sys_template_path", "systemplate" }, { "lo_template_path", LO_PATH }, { "child_root_path", "jails" }, @@ -762,6 +764,8 @@ void LOOLWSD::initialize(Application& self) LOOLWSD::NumConnections = 0; + TileCachePersistent = getConfigValue<bool>(conf, "tile_cache_persistent", true); + // Command Tracing. if (getConfigValue<bool>(conf, "trace[@enable]", false)) { |