ignore updates (session creation is written) of *dav and avatar, due to possible high volume of updates

This commit is contained in:
Ralf Becker 2019-09-27 15:58:49 +02:00
parent 163eb1fe48
commit 71d3e3a80c

View File

@ -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(),