closing/commiting the session to speed up calendar loading

This commit is contained in:
Ralf Becker 2021-10-20 13:53:19 +02:00
parent 2343bd62b7
commit f6d756a0c1
3 changed files with 12 additions and 0 deletions

View File

@ -966,6 +966,9 @@ class Select extends Etemplate\Widget
*/
public static function ajax_get_options($type, $attributes, $value = null)
{
// close session now, to not block other user actions
$GLOBALS['egw']->session->commit_session();
$no_lang = false;
if(is_array($attributes))
{

View File

@ -1662,6 +1662,9 @@ abstract class Framework extends Framework\Extra
*/
public static function ajax_user_list()
{
// close session now, to not block other user actions
$GLOBALS['egw']->session->commit_session();
$list = array('accounts' => array(),'groups' => array(), 'owngroups' => array());
if($GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'primary_group')
{
@ -1688,6 +1691,9 @@ abstract class Framework extends Framework\Extra
*/
public static function ajax_account_data($_account_ids, $_field, $_resolve_groups=false)
{
// close session now, to not block other user actions
$GLOBALS['egw']->session->commit_session();
$list = array();
foreach((array)$_account_ids as $account_id)
{

View File

@ -138,6 +138,9 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
*/
public static function ajax_owner($id = null)
{
// close session now, to not block other user actions
$GLOBALS['egw']->session->commit_session();
// Handle a request for a single ID
if($id && !is_array($id))
{