Returns one of Cache_Lite containers.
Example usage: Default Cache_Lite instance.
- $cache = &SGL_Cache::singleton();
Cache_Lite_Function instance with specified params on the fly. 2. $cache = &SGL_Cache::singleton('function', array( 'dontCacheWhenTheResultIsFalse' => true, 'dontCacheWhenTheResultIsNull' => true, 'lifeTime' => 3, 'debugCacheLiteFunction' => true, )); Cache_Lite_Output instance. 3. $cache = &SGL_Cache::singleton('output'); Force Cache_Lite_Function instance. 4. $cache = &SGL_Cache::singleton('function', array(), true); BC way to force cache. 5. $cache = &SGL_Cache::singleton(true);
Cache_Lite
&singleton
([mixed $type = 'default'], [array $aOptions = array()], [boolean $forceNew = false])
-
mixed
$type: Cache_Lite container. In BC mode flag to force boolean mode.
-
array
$aOptions: Options to override config values on the fly.
-
boolean
$forceNew: Force cache even if not in caching mode.
Clear cache directory of a specific module's cache files.
A simple wrapper to PEAR::Cache_Lite::clean() method.
boolean
clear
([string $group = false], [ $mode = 'ingroup'], [ $options = array()])
-
string
$group: name of the cache group (e.g. nav, blocks, etc.)
-
$mode
-
$options