constructor Cache_Lite_Function::Cache_Lite_Function

constructor Cache_Lite_Function::Cache_Lite_Function() – Constructor

Synopsis

require_once 'Cache/Lite/Function.php';

void constructor Cache_Lite_Function::Cache_Lite_Function ( array $options = array(NULL) )

Description

The constructor of the Cache_Lite_Output class. You can give an associative array as an argument to set a lot of options.

Parameter

array $options

associative array to set a lot of options (see Cache_Lite constructor for details). Be careful, with Cache_Lite_Function, additional options are available (comparatively to Cache_Lite). There are described on the following table.

Option Data Type Default Value Description
[...] [...] [...] See Cache_Lite constructor for more options
defaultGroup string Cache_Lite_Function default cache group for function caching
debugCacheLiteFunction boolean FALSE debug the caching process
dontCacheWhenTheOutputContainsNOCACHE boolean FALSE Don't cache the method call when its output contains the string "NOCACHE". If set to true, the output of the method will never be displayed (because the output is used to control the cache)
dontCacheWhenTheResultIsFalse boolean FALSE Don't cache the method call when its result is false
dontCacheWhenTheResultIsNull boolean FALSE Don't cache the method call when its result is null

Note

This function can not be called statically.

Stop the output buffering started by the start() method and store the output to a cache file (Previous) Calls a cacheable function or method (or not if there is already a cache for it) (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.