Previous Page
getLife()

Solar_Cache_Adapter_File
isActive()

Next Page
locale()

isActive()

public bool isActive ( )

Gets the current activity state of the cache (on or off).

Inherited from Solar_Cache_Adapter.

Parameters

  • None.

Returns

  • (bool) True if active, false if not.

Description

Gets the current activity state of the cache (on or off).

<?php
$cache = Solar::factory('Solar_Cache');

// is the cache active or not?
$flag = $cache->isActive();
Solar::dump($flag);
?>