From 9db8e2d524cc25b445f02848e4963e9cb62ed32d Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 1 Mar 2010 19:04:34 +0000 Subject: - Improve performance by avoiding unnecessary updates to the session table (#1486325) git-svn-id: https://svn.roundcube.net/trunk@3296 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roundcubemail/program/steps') diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index da21220ff..a8ef65139 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -1325,9 +1325,9 @@ function rcmail_compose_cleanup() if (!isset($_SESSION['compose'])) return; - rcmail::get_instance()->plugins->exec_hook('cleanup_attachments',array()); - - rcube_sess_unset('compose'); + $rcmail = rcmail::get_instance(); + $rcmail->plugins->exec_hook('cleanup_attachments',array()); + $rcmail->session->remove('compose'); } -- cgit v1.2.3