summaryrefslogtreecommitdiff
path: root/wsd/LOOLWSD.cpp
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2017-04-12 12:32:59 +0200
committerJan Holesovsky <kendy@collabora.com>2017-04-12 20:08:54 +0200
commitacfbdfa3d59d3d52feae0f711f9d4af3fd71cd66 (patch)
tree8f64a42359371f509213f73b19d33f0a37513128 /wsd/LOOLWSD.cpp
parent00af954041c72f00e2813f4102fe22b6f52fa946 (diff)
wsd - implemented an option to clean cache on doc close2.1-rc1
Includes also the following commit: Clean the cache even when the document was not modified. And rename the option, to match better the existing tile cache setting. Change-Id: I0bdb373efb93546527a168df2ed1c75539e95fe4
Diffstat (limited to 'wsd/LOOLWSD.cpp')
-rw-r--r--wsd/LOOLWSD.cpp4
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))
{