Solar_Cache_Adapter::setActive()

public void Solar_Cache_Adapter::setActive ( bool $flag )

Makes the cache active (true) or inactive (false).

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