Solar_Cache_Adapter::isActive()
public
bool
Solar_Cache_Adapter::isActive ( void
)
Gets the current activity state of the cache (on or off).
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);