$_automaticCleaningFactor = 0
[line 217]
Disable / Tune the automatic cleaning process
The automatic cleaning process destroy too old (for the given life time) cache files when a new cache file is written.
- => no automatic cache cleaning
- => systematic cache cleaning
x (integer) > 1 => automatic cleaning randomly 1 times on x cache write
$_automaticSerialization = false
[line 204]
Enable / disable automatic serialization
it can be used to save directly datas which aren't strings (but it's slower)
$_cacheDir = '/tmp/'
[line 40]
Directory where to put the cache files (make sure to add a trailing slash)
$_caching = true
[line 49]
Enable / disable caching
(can be very usefull for the debug of cached scripts)
$_errorHandlingAPIBreak = false
[line 249]
API break for error handling in CACHE_LITE_ERROR_RETURN mode
In CACHE_LITE_ERROR_RETURN mode, error handling was not good because for example save() method always returned a boolean (a PEAR_Error object would be better in CACHE_LITE_ERROR_RETURN mode). To correct this without breaking the API, this option (false by default) can change this handling.
$_file =
[line 81]
File name (with path)
$_fileLocking = true
[line 67]
Enable / disable fileLocking
(can avoid cache corruption under bad circumstances)
$_fileName =
[line 88]
File name (without path)
$_fileNameProtection = true
[line 194]
File Name protection
if set to true, you can use any cache id or group name if set to false, it can be faster but cache ids and group names will be used directly in cache file names so be carefull with special characters...
$_group =
[line 144]
Current cache group
$_hashedDirectoryLevel = 0
[line 230]
Nested directory level
Set the hashed directory structure level. 0 means "no hashed directory structure", 1 means "one level of directory", 2 means "two levels"... This option can speed up Cache_Lite only when you have many thousands of cache file. Only specific benchs can help you to choose the perfect value for you. Maybe, 1 or 2 is a good start.
$_hashedDirectoryUmask = 0700
[line 237]
Umask for hashed directory structure
$_id =
[line 137]
Current cache id
$_lifeTime = 3600
[line 58]
Cache lifetime (in seconds)
If null, the cache is valid forever.
$_memoryCaching = false
[line 153]
Enable / Disable "Memory Caching"
NB : There is no lifetime for memory caching !
$_memoryCachingArray = array()
[line 168]
Memory caching array
$_memoryCachingCounter = 0
[line 175]
Memory caching counter
$_memoryCachingLimit = 1000
[line 182]
Memory caching limit
$_onlyMemoryCaching = false
[line 161]
Enable / Disable "Only Memory Caching" (be carefull, memory caching is "beta quality")
$_pearErrorMode = CACHE_LITE_ERROR_RETURN
[line 130]
Pear error mode (when raiseError is called)
(see PEAR doc)
Tags:
$_readControl = true
[line 108]
Enable / disable read control
If enabled, a control key is embeded in cache file and this key is compared with the one calculated after the reading.
$_readControlType = 'crc32'
[line 120]
Type of read control (only if read control is enabled)
Available values are : 'md5' for a md5 hash control (best but slowest) 'crc32' for a crc32 hash control (lightly less safe but faster, better choice) 'strlen' for a length only test (fastest)
$_refreshTime =
[line 74]
Timestamp of the last valid cache
$_writeControl = true
[line 98]
Enable / disable write control (the cache is read just after writing to detect corrupt entries)
Enable write control will lightly slow the cache writing but not the cache reading Write control can detect some corrupt cache files but maybe it's not a perfect control