Cache_Lite pear.php.net Fast and Safe little cache system This package is a little cache system optimized for file containers. It is fast and safe (because it uses file locking and/or anti-corruption tests). Fabien MARTY fab fab@php.net no Markus Tacker tacker tacker@php.net no 2019-11-19 1.8.3 1.8.0 stable stable lgpl * PR #8: Fix failing CI * PR #9: Add PHP 7.1 and 7.2 to run PHPUnit on Travis * PR #10: fix(Lite): make _memoryCacheAdd not clear whole cache if limit reached * PR #11: fix get_magic_quotes_runtime is deprecated 5.4.0 1.5.4 PEAR pear.php.net 1.10.1 0.1 0.1 beta beta 2002-08-08 lgpl This is the first release. 0.1.1 0.1.1 beta beta 2002-08-08 lgpl A little packaging fix 0.2.0 0.2.0 beta beta 2002-08-10 lgpl New features : - Adding Cache_Lite_Function (to cache the result and output of functions/methods) Bugs fixed : - In a few cases of cache corruption, it was possible to get some warnings (but the output was correct) - Cache_Lite_Output require_once (to load Cache_Lite) wasn't correct 0.3 0.3 beta beta 2002-08-31 lgpl New features : - Add '$doNotTestCacheValidity' optional parameter for the get() method Changes : - raiseError() method becomes public - swap of two lines in _write() method (Thanks to Jean-Francois BUSTARRET) Bugs fixed : - remove blank spaces at the end of the class (Thanks to Jean-Francois BUSTARRET) - E_NOTICEs problems and maybe a minor bug of errors management (Thanks to Sebastian BERGMANN) 0.4 0.4 beta beta 2002-09-25 lgpl New features : - Add setLifeTime() method to change the cache lifetime dynamicaly Changes : - changes in the directory layout and in file names to (better) respect PEAR standards => incompatibility with 0.3 version even there is no incompatible change in the API 1.0 1.0 stable stable 2002-11-11 lgpl This is the first stable release of Cache_Lite. There is no big change since the 0.4 beta release but two months of tests ! Changes : - fix magic_q issue (Thanks to Moshe Doron) 1.0.1 1.0.1 stable stable 2002-11-12 lgpl Bug fixed : - clean() bug with group (Thanks to Ondrej Jombik) 1.1 1.1 stable stable 2003-02-23 lgpl Changes : - Move to usage of call_user_func_array() and call_user_func() as call_user_method() is depreciated (thanks to Sterling Hughes) New Features : - Introduce memoryCaching (idea of Mike Benoit) - Add of a file name protection option (can be faster if set to off) (thanks to Brian Webb for the idea) Bug fixed : - Little fix : cache was inefficient if the output is only 0 (thanks to Brian Webb) - notice fix (thanks to Lorenzo Alberton, Pierre-Alain Joye and Jon Parise) - Little fix to avoid file names problems with an exotic group name (thanks to Brian Webb) - Fix a possible bug when resave a cache file after a succesfull get (thanks to Michael Caplan) 1.2 1.2 stable stable 2003-10-25 lgpl Changes : - Rewrite of Cache_Lite constructor (thanks to Brian E. Lozier) New Features : - Add of lastModified() method (for Cache_Lite hackers) (thanks to Harry Fuecks) - Introduce automatic serialization (false in default) (thanks to Dan Wilson) - Add of an url for a cache_lite tutorial (english (thanks to paj) and french) Bug fixed : - Change the Cache_Lite::raiseError calls in $this->raiseError (thanks to Holger Willenborg) - Set the default group for remove, since get and save both have it set (thanks to jellybob) - Little fix for caching binary data under Windows (thanks to Simeon Franklin) - little fix with fileNameProtection set to false (not the default (big thank to Harry Fuecks)) 1.3 1.3 stable stable 2004-02-07 lgpl Changes : - Add a warning in examples file because of http://pear.php.net/bugs/bug.php?id=660 Bug fixed : - little warning fix in Cache_Lite_Function (fab) - little bug fix in lastModified() method (thanks to Yavor Shahpasov) - fix http://pear.php.net/bugs/bug.php?id=513 (thanks to alan@aardwolfweb.com) 1.3.1 1.3.1 stable stable 2004-08-16 lgpl Bug fixed : - problem with clean() method with memoryCaching activated (thanks to Bojan Mihelac (bmihelac at mihelac dot org)) - remove() method didn't deal with memoryCaching - bug fix #1758, thanks to Dave (djpenton at cs dot mu dot oz dot au) 1.4.0beta1 1.4.0beta1 beta beta 2004-12-11 lgpl New features : - hashed cache directory structure with the choice of the level (thanks to Mike Benoit (ipso at snappymail dot ca)) - new options for cleaning the cache ("not in group", "too old"...) (thanks to dontilooksweetandinnocent@ambience.ru) - automatic cleaning of too old cache files based on a customisable "random method" 1.4.0 1.4.0 stable stable 2005-01-21 lgpl Changes : - juste a little more docs since 1.4.0beta1 1.4.1 1.4.1 stable stable 2005-03-01 lgpl Bug fixed : - problem of non-ISO-8859-1 characters in package.xml (bug #3621) - problem of the returning value in clean() method (integer and not void) (thanks to Demian Turner (demian (at) phpkitchen (dot) com)) 1.5.0 1.5.0 beta beta 2005-06-18 lgpl New features : - add of a doNotTestCacheValidity in Output (like in Lite.php) - request #4502 : better control on cache cleaning condition (thanks to vincent lascaux); introduce the idea of a user callback for the cleaning process - new Cache_Lite_File module (for a cache controlled by a master file, very usefull for templates or config caching) Bug fixed : - avoid a potential error message if cache doesn't exist - bug #4236 : fread PHP warning on zero length read (because of the change of fread() behaviour in PHP) (thanks to rick dot overman at gmail dot com) 1.5.1 1.5.1 stable stable 2005-07-10 lgpl Changes : - juste a little more docs since 1.5.0 (beta) - the state in "stable" now 1.5.2 1.5.2 stable stable 2005-07-18 lgpl Bug Fixed : - a "package.xml" problem (a file was forgotten) 1.6.0beta1 1.6.0beta1 beta beta 2005-11-17 lgpl New features : - phpt test scripts - add of drop() method to Cache_Lite_Function (thanks to Hugo Morganho hjm at holos dot pt) - request #5495 : a null lifetime give an eternal caching (need tests) Bug fixed : - bugfix #5921 : a variable was unused (no consequence for the end user), thanks to moosh at php dot net - bugfix #5938 : little mistakes given by Zend Code Analyser - little mistake in the example for Cache_Lite_File 1.6.0beta2 1.6.0beta2 beta beta 2005-11-25 lgpl New features : - a new phpt test script (eternal caching) - you can now call Cache_Lite constructor with any argument (thanks to ratibus at gmail dot com) Bug fixed : - bugfixes about eternal caching Other change : - better code factoring (thanks to ratibus at gmail dot com) 1.6.0 1.6.0 stable stable 2005-12-03 lgpl No change (just some modifications into online documentation) 1.7.0beta1 1.7.0beta1 beta beta 2006-01-29 lgpl New features : - 3 new unit tests - a new option is available in the constructor "errorHandlingAPIBreak" (boolean, false by default) ; if set to true, it introduces a little API break but the error handling is better in CACHE_LITE_ERROR_RETURN mode (specially with the save() method which can return a PEAR_Error object) Changes : - code refactoring for setToDebug() (thanks to moosh (at) php (dot) net) - code refactoring (thanks to code analyzer) Bugs fixed : - #6388 : add an explicit dependancy on PEAR package (for error handling) (thanks to moosh (at) php (dot) net) 1.7.0beta2 1.7.0beta2 beta beta 2006-02-04 lgpl Bugs fixed : - 3 unit test files was forgotten in beta1 package.xml New features : - request #6681 : new extendLife() method (thanks to alex at vegagames dot net) - request #6617 : "$this->method()" calls are ok with Cache_Lite_Function without workaround (thanks to thomas dot nicolai at unisg dot ch) - request #6575 : new options 'dontCacheWhenTheOutputContainsNOCACHE', 'dontCacheWhenTheResultIsFalse', 'dontCacheWhenTheResultIsNull' (thanks to thomas dot nicolai at unisg dot ch) - new debug option for Cache_Lite_Function - new test files 1.7.0 1.7.0 stable stable 2006-02-21 lgpl No change (just some modifications into online documentation) 1.7.1 1.7.1 stable stable 2006-05-14 lgpl Bugs fixed : - #7618 : can't save cache correctly (in some particular cases) (thanks to neta-master at ywcafe dot net) Other changes : - new unit test file (about bug #7618) 1.7.2 1.7.2 stable stable 2006-06-03 lgpl Bugs fixed : - #7799 : setToDebug() doesn't work - #7732 (or #7598) : hashedDirectory refactoring to get rid of some warnings (in some particular cases) 1.7.3 1.7.2 stable stable 2008-04-13 lgpl Bugs fixed : - #11224 Fixed improper use of strpos - #11260 Fixed improper use of internal property resulting in memory cache not beeing saved - #12750 Fxied internal cleaning routine 1.7.4 1.7.4 stable stable 2008-06-08 lgpl Implemented feature request: - #13693 Added new option to Cache_Lite::remove() to check for non-existing cache files. - Added unit test file for Bug #13693 2009-01-13 1.7.5 1.7.4 stable stable lgpl - Bug #7446 - use time() instead if mktime() to prevent a strict error beeing raised. - Request #11766 - Use mt_rand() instead of rand() 2009-01-25 1.7.6 1.7.4 stable stable lgpl - Changed PEAR dependency to 1.5.4. See http://pear.php.net/advisory-20070507.txt 2009-03-07 1.7.7 1.7.7 stable stable lgpl - Fixing definition of Cache_Lite_File::get(). See Bug #15986. 2009-07-07 1.7.8 1.7.7 stable stable lgpl - Set magic quotes runtime only if needed. See Bug #15725. 2011-03-02 1.7.9 1.7.7 stable stable lgpl - If sys_get_temp_dir() is available and the 'cacheDir' option is not provided in the constructor options array its output is used to determine the suitable temporary directory. See Bug #18328 2011-05-29 1.7.10 1.7.7 stable stable lgpl - Updated LICENSE to include "new" address of FSF. Fixes PEAR Bug #18571. Props to Remi Collet for reporting. 2011-05-30 1.7.11 1.7.7 stable stable lgpl - Updated LICENSE to include "new" address of FSF. Fixes PEAR Bug #18571. Props to Remi Collet for reporting. - Updated links to LGPL in package.xml 1.7.12 1.7.7 stable stable 2011-11-15 lgpl - Fixes PEAR Bug #18679. Props to Tama Pugsley for reporting. 1.7.13 1.7.7 stable stable 2011-11-15 lgpl Bug #18965 Tests fail with current dir structure Bug #18987 Remove error_reporting 1.7.14 1.7.7 stable stable 2012-05-21 lgpl - Fixes PEAR Bug #19422. Props to Fletcher Moore for reporting. 2012-05-24 1.7.15 1.7.7 stable stable lgpl - Fixes Bug #19434: Bad roles for test and doc files. Props to Remi Collet for reporting. 2014-05-10 1.7.16 1.7.7 stable stable lgpl - Update tests to work with PHPUnit4 2016-07-04 1.8.0 1.8.0 stable stable lgpl - Add PHP5-style constructors, but keep PHP4 ones for BC - Make non-static test method static - Raise minimum PEAR version to 1.10.1 - Raise minimum PHP version to 5.4 2018-01-27 1.8.1 1.8.0 stable stable lgpl - Use correct SPDX license identifier 2018-02-13 1.8.2 1.8.0 stable stable lgpl - Bug #21003 "PHP7: Cache_Lite has a deprecated constructor" - Bug #21231 "The each() function is deprecated in PHP7.2" 2019-11-19 1.8.3 1.8.0 stable stable lgpl * PR #8: Fix failing CI * PR #9: Add PHP 7.1 and 7.2 to run PHPUnit on Travis * PR #10: fix(Lite): make _memoryCacheAdd not clear whole cache if limit reached * PR #11: fix get_magic_quotes_runtime is deprecated