Home » Caching » Cache_Lite
Fast and Safe little cache system
This package is unmaintained.
Download latest release 1.8.3 (there is a newer Composer installable version)
License: lgpl
Description
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).
Documentation
Maintainers
- Fabien MARTY (fab) — lead, inactive
- Markus Tacker (tacker) — lead, inactive
Dependencies
Required
- PHP (>= 5.4.0)
- PEAR Installer (>= 1.5.4)
- PEAR (>= 1.10.1)
Releases
- 1.8.3 (stable, 2019-11-19)
Release notes
License: 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 - 1.8.2 (stable, 2018-02-13)
Release notes
License: lgpl
- Bug #21003 "PHP7: Cache_Lite has a deprecated constructor"
- Bug #21231 "The each() function is deprecated in PHP7.2" - 1.8.0 (stable, 2016-07-04)
Release notes
License: 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 - 1.7.16 (stable, 2014-05-10)
Release notes
License: lgpl
- Update tests to work with PHPUnit4
- 1.7.15 (stable, 2012-05-24)
Release notes
License: lgpl
- Fixes Bug #19434: Bad roles for test and doc files. Props to Remi Collet for reporting.
- 1.7.14 (stable, 2012-05-21)
Release notes
License: lgpl
- Fixes PEAR Bug #19422. Props to Fletcher Moore for reporting.
- 1.7.12 (stable, 2011-08-15)
Release notes
License: lgpl
- Fixes PEAR Bug #18679. Props to Tama Pugsley for reporting.
- 1.7.11 (stable, 2011-05-30)
Release notes
License: 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.10 (stable, 2011-05-29)
Release notes
License: lgpl
- Updated LICENSE to include "new" address of FSF. Fixes PEAR Bug #18571. Props to Remi Collet
for reporting. - 1.7.9 (stable, 2011-03-02)
Release notes
License: 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 - 1.7.8 (stable, 2009-07-07)
Release notes
License: lgpl
- Set magic quotes runtime only if needed. See Bug #15725.
- 1.7.7 (stable, 2009-03-07)
Release notes
License: lgpl
- Fixing definition of Cache_Lite_File::get(). See Bug #15986.
- 1.7.6 (stable, 2009-01-25)
Release notes
License: lgpl
- Changed PEAR dependency to 1.5.4. See http://pear.php.net/advisory-20070507.txt
- 1.7.5 (stable, 2009-01-23)
Release notes
License: lgpl
- Bug #7446 - use time() instead if mktime() to prevent a strict error beeing raised.
- Request #11766 - Use mt_rand() instead of rand() - 1.7.4 (stable, 2008-06-09)
Release notes
License: 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 - 1.7.3 (stable, 2008-04-14)
Release notes
License: 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.2 (stable, 2006-06-03)
Release notes
License: 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.1 (stable, 2006-05-13)
Release notes
License: 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.0 (stable, 2006-02-21)
Release notes
License: lgpl
No change (just some modifications into online documentation)
- 1.7.0beta2 (beta, 2006-02-04)
Release notes
License: 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.0beta1 (beta, 2006-01-28)
Release notes
License: 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.6.0 (stable, 2005-12-02)
Release notes
License: lgpl
No change (just some modifications into online documentation)
- 1.6.0beta2 (beta, 2005-11-25)
Release notes
License: 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.0beta1 (beta, 2005-11-17)
Release notes
License: 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.5.2 (stable, 2005-07-18)
Release notes
License: lgpl
Bug Fixed :
- a "package.xml" problem (a file was forgotten) - 1.5.1 (stable, 2005-07-10)
Release notes
License: lgpl
Changes :
- juste a little more docs since 1.5.0 (beta)
- the state in "stable" now - 1.5.0 (beta, 2005-06-18)
Release notes
License: 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.4.1 (stable, 2005-03-01)
Release notes
License: 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.4.0 (stable, 2005-01-21)
Release notes
License: lgpl
Changes :
- juste a little more docs since 1.4.0beta1 - 1.4.0beta1 (beta, 2004-12-10)
Release notes
License: 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.3.1 (stable, 2004-08-16)
Release notes
License: 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.3 (stable, 2004-02-07)
Release notes
License: 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.2 (stable, 2003-10-25)
Release notes
License: 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.1 (stable, 2003-02-24)
Release notes
License: 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.0.1 (stable, 2002-11-12)
Release notes
License: lgpl
Bug fixed :
- clean() bug with group (Thanks to Ondrej Jombik) - 1.0 (stable, 2002-11-11)
Release notes
License: 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) - 0.4 (beta, 2002-09-28)
Release notes
License: 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 - 0.3 (beta, 2002-08-31)
Release notes
License: 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.2.0 (beta, 2002-08-10)
Release notes
License: 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.1.1 (beta, 2002-08-08)
Release notes
License: lgpl
A little packaging fix
- 0.1 (beta, 2002-08-08)
Release notes
License: lgpl
This is the first release.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #9 | Bogus | Bug | 2003-09-15 | not work with mod_gzip under apache | |
| #513 | Closed | Bug | 2004-01-03 | Throws Notice when _automaticSerialization = true | |
| #660 | Wont fix | Bug | 2004-02-01 | Problem using Cache_Lite_Function's 'call' method and $this->method | |
| #1216 | Closed | Bug | 2004-04-15 | method clean() when using memoryCaching | |
| #1758 | Closed | Bug | 2004-06-30 | warning generated | |
| #2820 | Closed | Bug | 2004-11-24 | Slow when many files | |
| #3621 | Closed | Bug | 2005-02-27 | CRITICAL: non-ISO-8859-1 characters in package.xml must be entitied | |
| #4236 | Closed | Bug | 2005-04-27 | fread PHP warning on zero length read | |
| #4261 | Closed | Req | 2005-05-02 | umask on mkdir with hashedDirectoryLevel | |
| #4502 | Closed | Req | 2005-06-01 | Better control on cache cleaning condition | |
| #4644 | Closed | Req | 2005-06-20 | Change some of the options passed in the constructor | |
| #4957 | Bogus | Bug | 2005-07-31 | null data on save method | |
| #5103 | Wont fix | Req | 2005-08-16 | get should return references | |
| #5109 | Wont fix | Req | 2005-08-16 | nested calls crash file key | |
| #5414 | Bogus | Bug | 2005-09-15 | Corrupt cache file creation | |
| #5492 | Bogus | Req | 2005-09-22 | Cache_Lite: eternal cache feature request | |
| #5495 | Closed | Req | 2005-09-22 | should support eternal caching | |
| #5610 | Closed | Bug | 2005-10-05 | Error in documentation | |
| #5853 | Closed | Bug | 2005-11-02 | Cache_Lite::get() throwing errors on uncreated files | |
| #5921 | Closed | Req | 2005-11-10 | unused var | |
| #5938 | Closed | Bug | 2005-11-11 | mistakes given by a code analyser | |
| #6290 | Closed | Req | 2005-12-19 | non-specific automaticCleaningFactor | |
| #6319 | No Feedback | Bug | 2005-12-21 | CACHE_LITE_ERROR_RETURN does not work for save method | |
| #6388 | Closed | Bug | 2006-01-02 | dependancy not anonounced | |
| #6575 | Closed | Req | 2006-01-25 | Cache_Lite_Function | |
| #6609 | Wont fix | Req | 2006-01-27 | Detach unlinking of old cache | |
| #6617 | Closed | Req | 1.7.0beta1 | 2006-01-29 | Cache_Lite_Function |
| #6681 | Closed | Req | 1.6.0 | 2006-02-03 | Extending life of a cache file |
| #7061 | No Feedback | Bug | 1.7.0 | 2006-03-08 | Cache-Control fails |
| #7292 | Bogus | Bug | 1.7.0 | 2006-04-04 | Bogus |
| #7337 | Bogus | Bug | 1.7.0 | 2006-04-07 | Eternal caching doesn't work |
| #7410 | Suspended | Req | 1.7.0 | 2006-04-17 | Performance enhancement with fpassthru() |
| #7411 | Wont fix | Req | 1.7.0 | 2006-04-17 | New module Temp.php |
| #7446 | Closed | Bug | 1.7.0 | 2006-04-20 | Using mktime() with no args is generating strict errors |
| #7598 | Closed | Bug | 1.7.0 | 2006-05-10 | PHP Warnings on cache directory creation |
| #7618 | Closed | Bug | 1.7.0 | 2006-05-13 | can't save cache correctly |
| #7732 | Bogus | Bug | 1.7.1 | 2006-05-26 | Warning on cache reading/writing |
| #7799 | Closed | Bug | 1.7.1 | 2006-06-02 | Call to invalid setOptions() in setToDebug() |
| #8221 | Closed | Bug | 1.7.2 | 2006-07-14 | error in _writeAndControl |
| #8226 | Suspended | Req | 1.7.2 | 2006-07-16 | E_STRICT related to PHP5 |
| #8246 | Bogus | Bug | 1.7.2 | 2006-07-19 | Cache Dir |
| #8361 | No Feedback | Bug | 2006-08-04 | Cache_lite bug with MBSTRING | |
| #9178 | Closed | Doc | 1.7.2 | 2006-10-27 | Cache Lite drop method doesn't return true |
| #9229 | Bogus | Bug | 1.7.2 | 2006-11-03 | Fatal error using setToDebug(); |
| #9480 | Bogus | Req | 1.7.2 | 2006-11-27 | Aquiring the cache expiry date |
| #9669 | No Feedback | Bug | 1.7.2 | 2006-12-21 | function drop() is broken |
| #9836 | No Feedback | Req | 1.7.2 | 2007-01-15 | fread() in _read function malfunctioning |
| #10502 | Open | Req | CVS | 2007-03-25 | Cache_Lite_Function::call should accept standard callbacks as 1st argument |
| #10527 | Wont fix | Bug | CVS | 2007-03-27 | Function::_makeId() creates different ids for same function call |
| #10923 | Wont fix | Req | 1.7.2 | 2007-05-04 | Storage Containers |
| #11224 | Closed | Bug | 1.7.2 | 2007-06-05 | Implicit type conversion => too much cache is flushed?! |
| #11260 | Closed | Bug | 1.7.2 | 2007-06-09 | possible misstyped property |
| #11727 | Bogus | Bug | 2007-07-31 | typo in Lite.php notingrou vs notingroup | |
| #11728 | Duplicate | Doc | 2007-07-31 | User note that is a documentation problem | |
| #11766 | Closed | Req | 1.7.2 | 2007-08-05 | Use mt_rand() instead of rand() |
| #11767 | Duplicate | Req | 1.7.2 | 2007-08-05 | Use mt_rand() instead of rand() |
| #12179 | Open | Req | 1.7.2 | 2007-10-03 | File.php: Allow timestamp in constructor in place of masterFile |
| #12750 | Closed | Bug | 1.7.2 | 2007-12-21 | Clean memory cache |
| #13297 | Open | Req | 1.7.2 | 2008-03-03 | Support for per item lifetime |
| #13553 | Bogus | Bug | 1.7.2 | 2008-04-01 | Memory Leak if cacheDir is not writeable |
| #13692 | Duplicate | Bug | 1.7.3 | 2008-04-16 | warning function.unlink: No such file or directory |
| #13693 | Closed | Req | 1.7.3 | 2008-04-16 | warning function.unlink: No such file or directory |
| #14441 | Closed | Req | 1.7.4 | 2008-08-03 | Allow more flexible control over permissions and groups of files and dirs |
| #14636 | Wont fix | Bug | 1.7.4 | 2008-09-11 | Intermitent bugs during autocleaning and reading |
| #15725 | Closed | Req | 1.7.4 | 2009-01-22 | set_magic_quotes_runtime deprecated in PHP 5.3.0 (alpha4dev) |
| #15986 | Closed | Bug | 2009-03-06 | E_STRICT warnings | |
| #16119 | Bogus | Req | Irrelevant | 2009-04-18 | Count cache entries cleaned |
| #16162 | No Feedback | Req | 1.7.7 | 2009-04-30 | Support for nested output capturing |
| #16591 | Closed | Req | 1.7.8 | 2009-09-10 | Touch cache files on regeneration to prevent "stampeding" |
| #17269 | Open | Req | 2010-03-25 | Extend Cache_Lite::lastModified() take a cache_id to return the age of an entry | |
| #17774 | Open | Req | SVN | 2010-08-21 | Patch: Avoid deprecated function calls |
| #18192 | Suspended | Bug | 1.7.8 | 2011-01-13 | Improper file opening in _write method |
| #18328 | Closed | Req | 1.7.8 | 2011-03-02 | Proper default for cacheDir |
| #18414 | Closed | Bug | 1.7.9 | 2011-03-31 | switch / case mistake |
| #18546 | Closed | Doc | 1.7.9 | 2011-05-17 | Link to technical choices document is broken |
| #18569 | Closed | Bug | 1.7.9 | 2011-05-28 | Potential bug in Cache_Lite |
| #18571 | Closed | Doc | 1.7.10 | 2011-05-30 | LICENSE file is outdated |
| #18679 | Closed | Bug | 1.7.11 | 2011-07-22 | _cleanDir missing files |
| #18965 | Closed | Bug | SVN | 2011-11-06 | Tests fail due to dir structure |
| #18987 | Closed | Bug | SVN | 2011-11-14 | remove error_reporting (for PEAR QA team) |
| #19046 | Closed | Bug | SVN | 2011-11-15 | Test fails in CI environment |
| #19222 | Closed | Bug | Git | 2012-01-13 | pear package-validate fails |
| #19422 | Closed | Bug | 1.7.14 | 2012-05-17 | _read truncates cache files |
| #19433 | Closed | Bug | 1.7.14 | 2012-05-23 | Corrupt archive |
| #19434 | Closed | Bug | 1.7.14 | 2012-05-23 | Bad role for tes and doc |
| #19711 | Closed | Bug | 1.7.15 | 2012-11-19 | wrong data returned form get |
| #19712 | Open | Req | 1.7.15 | 2012-11-20 | clearstatcache use on write only |
| #19720 | No Feedback | Req | 1.7.15 | 2012-11-26 | Flawed locking mechanism |
| #20417 | Closed | Req | 1.7.16 | 2014-09-30 | Git repository has no version tags |
| #21003 | Closed | Bug | 1.7.16 | 2015-12-16 | PHP7: Cache_Lite has a deprecated constructor |
| #21231 | Closed | Bug | 1.8.0 | 2017-07-26 | The each() function is deprecated in PHP7.2. |