Solar_Cache_Adapter_None::isActive()
public
bool
Solar_Cache_Adapter_None::isActive ( void
)
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);