Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2022-08-16 11:09:14 +0300
committerJulius Härtl <jus@bitgrid.net>2022-08-17 13:10:27 +0300
commit9e1d4312555ddc1009450b1f6b7078ae35790593 (patch)
treed82dd6d0742db12cdd491b887ed573fb7f75ff3f /config
parent9b4b72826ade5ab1bc7fb06048e62910ef607cd8 (diff)
Add config option to disable strict session timeout to be able to use read_and_close
Fixed https://github.com/nextcloud/server/issues/29356 Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 025cf1105a0..fe45223361f 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -257,6 +257,17 @@ $CONFIG = [
'session_lifetime' => 60 * 60 * 24,
/**
+ * `true` enabled a relaxed session timeout, where the session timeout would no longer be
+ * handled by Nextcloud but by either the PHP garbage collection or the expiration of
+ * potential other session backends like redis.
+ *
+ * This may lead to sessions being available for longer than what session_lifetime uses but
+ * comes with performance benefits as sessions are no longer a locking operation for concurrent
+ * requests.
+ */
+'session_relaxed_expiry' => false,
+
+/**
* Enable or disable session keep-alive when a user is logged in to the Web UI.
* Enabling this sends a "heartbeat" to the server to keep it from timing out.
*