cvs: pear /Cache_Lite Lite.php

From: Date: Wed, 16 Nov 2005 21:58:20 +0000
Subject: cvs: pear /Cache_Lite Lite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-36336@lists.php.net to get a copy of this message
fab Wed Nov 16 16:58:20 2005 EDT Modified files: /pear/Cache_Lite Lite.php Log: mistakes without incidence for the end user http://cvs.php.net/diff.php/pear/Cache_Lite/Lite.php?r1=1.32&r2=1.33&ty=u Index: pear/Cache_Lite/Lite.php diff -u pear/Cache_Lite/Lite.php:1.32 pear/Cache_Lite/Lite.php:1.33 --- pear/Cache_Lite/Lite.php:1.32 Tue Nov 15 17:02:34 2005 +++ pear/Cache_Lite/Lite.php Wed Nov 16 16:58:20 2005 @@ -19,7 +19,7 @@ * * @package Cache_Lite * @category Caching -* @version $Id: Lite.php,v 1.32 2005/11/15 22:02:34 fab Exp $ +* @version $Id: Lite.php,v 1.33 2005/11/16 21:58:20 fab Exp $ * @author Fabien MARTY <fab@php.net> */ @@ -264,7 +264,6 @@ */ function Cache_Lite($options = array(NULL)) { - $availableOptions = array('hashedDirectoryUmask', 'hashedDirectoryLevel', 'automaticCleaningFactor', 'automaticSerialization', 'fileNameProtection', 'memoryCaching', 'onlyMemoryCaching', 'memoryCachingLimit', 'cacheDir', 'caching', 'lifeTime', 'fileLocking', 'writeControl', 'readControl', 'readControlType', 'pearErrorMode'); foreach($options as $key => $value) { $this->setOption($key, $value); } @@ -327,7 +326,7 @@ } } if (($data) and ($this->_memoryCaching)) { - $this->_memoryCacheAdd($this->_file, $data); + $this->_memoryCacheAdd($data); } if (($this->_automaticSerialization) and (is_string($data))) { $data = unserialize($data); @@ -356,7 +355,7 @@ $this->_setFileName($id, $group); } if ($this->_memoryCaching) { - $this->_memoryCacheAdd($this->_file, $data); + $this->_memoryCacheAdd($data); if ($this->_onlyMemoryCaching) { return true; } @@ -607,11 +606,10 @@ /** * Add some date in the memory caching array * - * @param string $id cache id * @param string $data data to cache * @access private */ - function _memoryCacheAdd($id, $data) + function _memoryCacheAdd($data) { $this->_memoryCachingArray[$this->_file] = $data; if ($this->_memoryCachingCounter >= $this->_memoryCachingLimit) {

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