|
Previous Page |
Solar_Cache_Adapter_File |
Next Class |
setActive()
public
void
setActive (
bool $flag
)
Makes the cache active (true) or inactive (false).
Inherited from Solar_Cache_Adapter.
Parameters
- (bool)
$flag: True to turn on, false to turn off.
Returns
- (void)
Description
Makes the cache active (true) or inactive (false).
<?php
$cache = Solar::factory('Solar_Cache');
// turn the cache off
$cache->setActive(false);
// turn it back on
$cache->setActive(true);
?>