forked from extern/egroupware
improve waterfall by releasing session
This commit is contained in:
parent
efc3d28210
commit
1ea49819bf
@ -1372,6 +1372,9 @@ abstract class Framework extends Framework\Extra
|
||||
*/
|
||||
public static function ajax_get_preference($app)
|
||||
{
|
||||
// dont block session, while we read preferences, they are not supposed to change something in the session
|
||||
$GLOBALS['egw']->session->commit_session();
|
||||
|
||||
if (preg_match('/^[a-z0-9_]+$/i', $app))
|
||||
{
|
||||
// send etag header, if we are directly called (not via jsonq!)
|
||||
|
@ -704,6 +704,9 @@ abstract class Ajax extends Api\Framework
|
||||
*/
|
||||
public function ajax_sidebox($appname, $md5)
|
||||
{
|
||||
// dont block session, while we read sidebox, they are not supposed to change something in the session
|
||||
$GLOBALS['egw']->session->commit_session();
|
||||
|
||||
$response = Api\Json\Response::get();
|
||||
$sidebox = $this->get_sidebox($appname);
|
||||
$encoded = json_encode($sidebox);
|
||||
|
@ -128,7 +128,7 @@ class Mail
|
||||
*
|
||||
* @array
|
||||
*/
|
||||
static $htmLawed_config = array('comment'=>1, //remove comments
|
||||
static $htmLawed_config = array('comment'=>2, //remove comments
|
||||
'make_tag_strict' => 3, // 3 is a new own config value, to indicate that transformation is to be performed, but don't transform font as size transformation of numeric sizes to keywords alters the intended result too much
|
||||
'keep_bad'=>2, //remove tags but keep element content (4 and 6 keep element content only if text (pcdata) is valid in parent element as per specs, this may lead to textloss if balance is switched on)
|
||||
// we switch the balance off because of some broken html mails contents get removed like (td in table), and let browser deal with it
|
||||
@ -482,6 +482,8 @@ class Mail
|
||||
{
|
||||
Cache::setCache(Cache::INSTANCE,'email','activeMailbox'.trim($GLOBALS['egw_info']['user']['account_id']),self::$activeFolderCache, 60*60*10);
|
||||
}
|
||||
// no need to block session any longer
|
||||
$GLOBALS['egw']->session->commit_session();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user