From 819edf5decae4e9456ce8140a8faa978d201ed8a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 10 Sep 2014 18:38:48 +0000 Subject: [PATCH] only log ajax requests which represent former GET requests or submits, to cut down updates to egw_access_log table --- json.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/json.php b/json.php index dff03df270..2e04f3f730 100644 --- a/json.php +++ b/json.php @@ -81,14 +81,11 @@ if (isset($_GET['menuaction'])) 'disable_Template_class' => True, 'autocreate_session_callback' => 'login_redirect', 'no_exception_handler' => true, // we already installed our own - 'no_dla_update' => $appName == 'notifications', // otherwise session never time out + // only log ajax requests which represent former GET requests or submits + // cuts down updates to egw_access_log table + 'no_dla_update' => !preg_match('/(\.etemplate_new\.ajax_process_content\.etemplate|\.jdots_framework\.ajax_exec\.template)$/', $_GET['menuaction']), ) ); - if ($_GET['menuaction']=='felamimail.ajaxfelamimail.refreshMessageList' || - $_GET['menuaction']=='felamimail.ajaxfelamimail.refreshFolderList') - { - $GLOBALS['egw_info']['flags']['no_dla_update']=true; - } include_once('./header.inc.php');