cvs: pear /HTTP_Session/Session/Container Memcache.php

From: Date: Sun, 31 Dec 2006 16:04:40 +0000
Subject: cvs: pear /HTTP_Session/Session/Container Memcache.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-43901@lists.php.net to get a copy of this message
troehr Sun Dec 31 16:04:40 2006 UTC Modified files: /pear/HTTP_Session/Session/Container Memcache.php Log: Removed caching mechanism http://cvs.php.net/viewvc.cgi/pear/HTTP_Session/Session/Container/Memcache.php?r1=1.1&r2=1.2&diff_format=u Index: pear/HTTP_Session/Session/Container/Memcache.php diff -u pear/HTTP_Session/Session/Container/Memcache.php:1.1 pear/HTTP_Session/Session/Container/Memcache.php:1.2 --- pear/HTTP_Session/Session/Container/Memcache.php:1.1 Sun Dec 31 14:15:58 2006 +++ pear/HTTP_Session/Session/Container/Memcache.php Sun Dec 31 16:04:40 2006 @@ -21,7 +21,7 @@ * @author Torsten Roehr <torsten.roehr@gmx.de> * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Memcache.php,v 1.1 2006/12/31 14:15:58 troehr Exp $ + * @version CVS: $Id: Memcache.php,v 1.2 2006/12/31 16:04:40 troehr Exp $ * @link http://pear.php.net/package/HTTP_Session * @since File available since Release 0.5.6 */ @@ -52,14 +52,6 @@ var $mc; /** - * Session data cache id - * - * @var mixed - * @access private - */ - var $crc = false; - - /** * Constructor method * * $options is an array with the options.<br> @@ -152,7 +144,6 @@ function read($id) { $result = $this->mc->get($this->options['prefix'] . $id); - $this->crc = strlen($result) . crc32($result); return $result; } @@ -166,14 +157,11 @@ */ function write($id, $data) { - if ($this->crc !== strlen($data) . crc32($data)) { - - $this->mc->set($this->options['prefix'] . $id, - $data, - MEMCACHE_COMPRESSED, - time() + ini_get('session.gc_maxlifetime') - ); - } + $this->mc->set($this->options['prefix'] . $id, + $data, + MEMCACHE_COMPRESSED, + time() + ini_get('session.gc_maxlifetime') + ); return true; }

« previous php.pear.cvs (#43901) next »