mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-06 05:59:15 +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
14b11281ec
commit
6617d2a1fe
9
json.php
9
json.php
@ -81,14 +81,11 @@ if (isset($_GET['menuaction']))
|
|||||||
'disable_Template_class' => True,
|
'disable_Template_class' => True,
|
||||||
'autocreate_session_callback' => 'login_redirect',
|
'autocreate_session_callback' => 'login_redirect',
|
||||||
'no_exception_handler' => true, // we already installed our own
|
'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');
|
include_once('./header.inc.php');
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user