Cache_Litepear.php.netFast and Safe little cache systemThis 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 MARTYfabfab@php.netnoMarkus Tackertackertacker@php.netno2019-11-191.8.31.8.0stablestablelgpl
* 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.01.5.4PEARpear.php.net1.10.10.10.1betabeta2002-08-08lgpl
This is the first release.
0.1.10.1.1betabeta2002-08-08lgpl
A little packaging fix
0.2.00.2.0betabeta2002-08-10lgpl
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.30.3betabeta2002-08-31lgpl
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.40.4betabeta2002-09-25lgpl
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.01.0stablestable2002-11-11lgpl
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.11.0.1stablestable2002-11-12lgpl
Bug fixed :
- clean() bug with group (Thanks to Ondrej Jombik)
1.11.1stablestable2003-02-23lgpl
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.21.2stablestable2003-10-25lgpl
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.31.3stablestable2004-02-07lgpl
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.11.3.1stablestable2004-08-16lgpl
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.0beta11.4.0beta1betabeta2004-12-11lgpl
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.01.4.0stablestable2005-01-21lgpl
Changes :
- juste a little more docs since 1.4.0beta1
1.4.11.4.1stablestable2005-03-01lgpl
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.01.5.0betabeta2005-06-18lgpl
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.11.5.1stablestable2005-07-10lgpl
Changes :
- juste a little more docs since 1.5.0 (beta)
- the state in "stable" now
1.5.21.5.2stablestable2005-07-18lgpl
Bug Fixed :
- a "package.xml" problem (a file was forgotten)
1.6.0beta11.6.0beta1betabeta2005-11-17lgpl
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.0beta21.6.0beta2betabeta2005-11-25lgpl
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.01.6.0stablestable2005-12-03lgpl
No change (just some modifications into online documentation)
1.7.0beta11.7.0beta1betabeta2006-01-29lgpl
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.0beta21.7.0beta2betabeta2006-02-04lgpl
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.01.7.0stablestable2006-02-21lgpl
No change (just some modifications into online documentation)
1.7.11.7.1stablestable2006-05-14lgpl
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.21.7.2stablestable2006-06-03lgpl
Bugs fixed :
- #7799 : setToDebug() doesn't work
- #7732 (or #7598) : hashedDirectory refactoring to get rid of some warnings (in some particular cases)
1.7.31.7.2stablestable2008-04-13lgpl
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.41.7.4stablestable2008-06-08lgpl
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-131.7.51.7.4stablestablelgpl
- Bug #7446 - use time() instead if mktime() to prevent a strict error beeing raised.
- Request #11766 - Use mt_rand() instead of rand()
2009-01-251.7.61.7.4stablestablelgpl
- Changed PEAR dependency to 1.5.4. See http://pear.php.net/advisory-20070507.txt
2009-03-071.7.71.7.7stablestablelgpl
- Fixing definition of Cache_Lite_File::get(). See Bug #15986.
2009-07-071.7.81.7.7stablestablelgpl
- Set magic quotes runtime only if needed. See Bug #15725.
2011-03-021.7.91.7.7stablestablelgpl
- 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-291.7.101.7.7stablestablelgpl
- Updated LICENSE to include "new" address of FSF. Fixes PEAR Bug #18571. Props to Remi Collet
for reporting.
2011-05-301.7.111.7.7stablestablelgpl
- 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.121.7.7stablestable2011-11-15lgpl
- Fixes PEAR Bug #18679. Props to Tama Pugsley for reporting.
1.7.131.7.7stablestable2011-11-15lgpl
Bug #18965 Tests fail with current dir structure
Bug #18987 Remove error_reporting
1.7.141.7.7stablestable2012-05-21lgpl
- Fixes PEAR Bug #19422. Props to Fletcher Moore for reporting.
2012-05-241.7.151.7.7stablestablelgpl
- Fixes Bug #19434: Bad roles for test and doc files. Props to Remi Collet for reporting.
2014-05-101.7.161.7.7stablestablelgpl
- Update tests to work with PHPUnit4
2016-07-041.8.01.8.0stablestablelgpl
- 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-271.8.11.8.0stablestablelgpl
- Use correct SPDX license identifier
2018-02-131.8.21.8.0stablestablelgpl
- Bug #21003 "PHP7: Cache_Lite has a deprecated constructor"
- Bug #21231 "The each() function is deprecated in PHP7.2"
2019-11-191.8.31.8.0stablestablelgpl
* 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