mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
closing/commiting the session to speed up calendar loading
This commit is contained in:
parent
beeabeda92
commit
a8cc4d3c33
@ -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))
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user