From 77aa861396f15e02c2dee4d23991bba1547e3664 Mon Sep 17 00:00:00 2001 From: thomasb Date: Wed, 9 Nov 2011 13:40:23 +0000 Subject: Consider replication delays in session storage git-svn-id: https://svn.roundcube.net/trunk@5403 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_session.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'roundcubemail/program/include/rcube_session.php') diff --git a/roundcubemail/program/include/rcube_session.php b/roundcubemail/program/include/rcube_session.php index e8bd9d06c..22aa55016 100644 --- a/roundcubemail/program/include/rcube_session.php +++ b/roundcubemail/program/include/rcube_session.php @@ -393,6 +393,18 @@ class rcube_session } + /** + * Re-read session data from storage backend + */ + public function reload() + { + if ($this->key && $this->memcache) + $this->mc_read($this->key); + else if ($this->key) + $this->db_read($this->key); + } + + /** * Serialize session data */ -- cgit v1.2.3