From 71d3e3a80c5791e26903c15b9243e3b7861cb394 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 27 Sep 2019 15:58:49 +0200 Subject: [PATCH] ignore updates (session creation is written) of *dav and avatar, due to possible high volume of updates --- api/src/Session.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/src/Session.php b/api/src/Session.php index 5e30b6a1cb..924f983504 100644 --- a/api/src/Session.php +++ b/api/src/Session.php @@ -1795,7 +1795,10 @@ class Session $this->set_action($action); } // update dla in access-log table, if we have an access-log row (non-anonymous session) - if ($this->sessionid_access_log && $update_access_log && is_object($GLOBALS['egw']->db)) + if ($this->sessionid_access_log && $update_access_log && + // ignore updates (session creation is written) of *dav and avatar, due to possible high volume of updates + !preg_match('#^(/webdav|/groupdav|api/avatar)\.php#', $this->action) && + is_object($GLOBALS['egw']->db)) { $GLOBALS['egw']->db->update(self::ACCESS_LOG_TABLE,array( 'session_dla' => time(),