Cache_Lite_Output::start()

Cache_Lite_Output::start() -- Test if a cache is available and (if yes) return it to the browser. Else, the output buffering is activated.

Referentiesamenvatting

require_once 'Cache/Lite/Output.php';

boolean Cache_Lite_Output::start (string $id [, string $group = 'default' [, boolean $doNotTestCacheValidity = FALSE]])

Beschrijving

Test if a cache is available and (if yes) return it to the browser. Else, the output buffering is activated.

Parameter

string $id

cache id

string $group

name of the cache group

boolean $doNotTestCacheValidity

if set to TRUE, the cache validity won't be tested

Return waarde

returns true if the cache is hit (false else)

Note

Deze functie kan niet statisch worden aangeroepen.

Voorbeeld