mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 15:33:23 +01:00
only log ajax requests which represent former GET requests or submits, to cut down updates to egw_access_log table
This commit is contained in:
parent
fad57f202b
commit
819edf5dec
9
json.php
9
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');
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user