Class: TCache_Lite
Source Location: /I18N/core/TCache_Lite.php
Fast, light and safe Cache Class
Class Details
|
|
|
Class Variables
$_automaticSerialization = false
[line 203]
Enable / disable automatic serialization it can be used to save directly datas which aren't strings (but it's slower)
$_cacheDir = '/tmp/'
[line 55]
Directory where to put the cache files (make sure to add a trailing slash)
$_caching = true
[line 64]
Enable / disable caching (can be very usefull for the debug of cached scripts)
$_file =
[line 94]
File name (with path)
$_fileLocking = true
[line 80]
Enable / disable fileLocking (can avoid cache corruption under bad circumstances)
$_fileNameProtection = true
[line 193]
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 143]
Current cache group
$_id =
[line 136]
Current cache id
$_lifeTime = 3600
[line 71]
Cache lifetime (in seconds)
$_memoryCaching = false
[line 152]
Enable / Disable "Memory Caching" NB : There is no lifetime for memory caching !
$_memoryCachingArray = array()
[line 167]
Memory caching array
$_memoryCachingCounter = 0
[line 174]
Memory caching counter
$_memoryCachingLimit = 1000
[line 181]
Memory caching limit
$_onlyMemoryCaching = false
[line 160]
Enable / Disable "Only Memory Caching" (be carefull, memory caching is "beta quality")
$_readControl = true
[line 116]
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 129]
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 87]
Timestamp of the last valid cache
$_writeControl = true
[line 106]
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
Class Methods
|
|