| | |
| | | */ |
| | | public function mc_destroy($key) |
| | | { |
| | | $ret = $this->memcache->delete($key); |
| | | // #1488592: use 2nd argument |
| | | $ret = $this->memcache->delete($key, 0); |
| | | if ($this->mc_debug) write_log('memcache', "delete($key): " . ($ret ? 'OK' : 'ERR')); |
| | | return $ret; |
| | | } |
| | |
| | | { |
| | | foreach ($this->gc_handlers as $fct) |
| | | call_user_func($fct); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Cleanup session data before saving |
| | | */ |
| | | public function cleanup() |
| | | { |
| | | // current compose information is stored in $_SESSION['compose'], move it to $_SESSION['compose_data_<ID>'] |
| | | if ($compose_id = $_SESSION['compose']['id']) { |
| | | $_SESSION['compose_data_'.$compose_id] = $_SESSION['compose']; |
| | | $this->remove('compose'); |
| | | } |
| | | } |
| | | |
| | | |