diff options
author | thomascube <thomas@roundcube.net> | 2011-11-09 13:40:23 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-11-09 13:40:23 +0000 |
commit | 81f5dd7774119e6f35f4594a68b25e53a22e65f2 (patch) | |
tree | 0ad06a5e053c75644d60379e1f78a1b830520040 /program/include/rcube_session.php | |
parent | 62c86187444721317c7f3bcb2edb469f00ca0971 (diff) |
Consider replication delays in session storage
Diffstat (limited to 'program/include/rcube_session.php')
-rw-r--r-- | program/include/rcube_session.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/program/include/rcube_session.php b/program/include/rcube_session.php index e8bd9d06c..22aa55016 100644 --- a/program/include/rcube_session.php +++ b/program/include/rcube_session.php @@ -394,6 +394,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 */ private function serialize($vars) |