Solar_Cache_Adapter_Var::setActive()

public void Solar_Cache_Adapter_Var::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);


Local