###Код для Magento 1.x:
Mage::app()->getCacheInstance()->canUse($type)
###Код для Magento 2:
/**
* @param string $type
* @return bool
*/
function df_cache_enabled($type) {
/** @var \Magento\Framework\ObjectManagerInterface $om */
$om = \Magento\Framework\App\ObjectManager::getInstance();
/** @var \Magento\Framework\App\Cache\StateInterface $cacheState */
$cacheState = $om->get('Magento\Framework\App\Cache\StateInterface');
return $cacheState->isEnabled($type);
}