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 beeabeda92
commit a8cc4d3c33
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

@ -1604,6 +1604,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')
{
@ -1630,6 +1633,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

@ -139,6 +139,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))
{