forked from extern/egroupware
closing/commiting the session to speed up calendar loading
This commit is contained in:
parent
2343bd62b7
commit
f6d756a0c1
api/src
calendar/inc
@ -966,6 +966,9 @@ class Select extends Etemplate\Widget
|
|||||||
*/
|
*/
|
||||||
public static function ajax_get_options($type, $attributes, $value = null)
|
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;
|
$no_lang = false;
|
||||||
if(is_array($attributes))
|
if(is_array($attributes))
|
||||||
{
|
{
|
||||||
|
@ -1662,6 +1662,9 @@ abstract class Framework extends Framework\Extra
|
|||||||
*/
|
*/
|
||||||
public static function ajax_user_list()
|
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());
|
$list = array('accounts' => array(),'groups' => array(), 'owngroups' => array());
|
||||||
if($GLOBALS['egw_info']['user']['preferences']['common']['account_selection'] == 'primary_group')
|
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)
|
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();
|
$list = array();
|
||||||
foreach((array)$_account_ids as $account_id)
|
foreach((array)$_account_ids as $account_id)
|
||||||
{
|
{
|
||||||
|
@ -138,6 +138,9 @@ class calendar_owner_etemplate_widget extends Etemplate\Widget\Taglist
|
|||||||
*/
|
*/
|
||||||
public static function ajax_owner($id = null)
|
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
|
// Handle a request for a single ID
|
||||||
if($id && !is_array($id))
|
if($id && !is_array($id))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user