Changeset 638e345 in github


Ignore:
Timestamp:
Apr 30, 2011 1:01:59 PM (2 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
2a38001
Parents:
1997a94
Message:

Don't attempt to read session data again if the initial read didn't return a result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_session.php

    r60a277f r638e345  
    164164 
    165165    // use internal data from read() for fast requests (up to 0.5 sec.) 
    166     if ($key == $this->key && $ts - $this->start < 0.5) { 
     166    if ($key == $this->key && (!$this->vars || $ts - $this->start < 0.5)) { 
    167167      $oldvars = $this->vars; 
    168168    } else { // else read data again from DB 
     
    290290 
    291291    // use internal data for fast requests (up to 0.5 sec.) 
    292     if ($key == $this->key && $ts - $this->start < 0.5) 
     292    if ($key == $this->key && !($this->vars || $ts - $this->start < 0.5)) 
    293293      $oldvars = $this->vars; 
    294294    else // else read data again 
Note: See TracChangeset for help on using the changeset viewer.