Fix MemcachedCacheDrive::delete() method
{
// We store with the hostname as key to avoid problems with other applications
return $this->memcached->set(
- self::getApp()->get_hostname() . ":" . $key,
+ self::getApp()->get_hostname() . ':' . $key,
$value,
time() + $duration
);
public function delete($key)
{
- return $this->memcached->delete($key);
+ $return = $this->memcached->delete(self::getApp()->get_hostname() . ':' . $key);
+
+ return $return;
}
public function clear()
public function read($session_id)
{
- if (!x($session_id)) {
+ if (empty($session_id)) {
return '';
}
return true;
}
- Cache::set('session:' . $session_id, $session_data, Session::$expire);
+ $return = Cache::set('session:' . $session_id, $session_data, Session::$expire);
- return true;
+ return $return;
}
public function close()
public function destroy($id)
{
- Cache::delete('session:' . $id);
- return true;
+ $return = Cache::delete('session:' . $id);
+
+ return $return;
}
public function gc($maxlifetime)