public function enableCache($enabled = true)
    {
        if ($enabled && extension_loaded('apcu')) {
            $this->_cache = true;
        } else {
            $this->_cache = false;
        }

        return $this->_cache;
    }
public function enableCache($enabled = true)
    {
        if ($enabled && extension_loaded('apcu')) {
            $this->_cache = true;
        } else {
            $this->_cache = false;
        }

        return $this->_cache;
    }
public function enableCache ( $ enabled = true ) { if ( $ enabled && extension_loaded ( 'apcu' ) ) { $ this -> _cache = true ; } else { $ this -> _cache = false ; } return $ this -> _cache ; }
Enable class caching

@param  boolean	Enable or disable the cache. Default is TRUE.
@return boolean	TRUE if caching is enabled. FALSE otherwise.
Enable class caching