Provide a single method to figure caching type, keeping a sensible default for when it's unset.
public function getCacheType() {
$cache_type = $this
->getOption('block_caching');
if (empty($cache_type)) {
$cache_type = DRUPAL_NO_CACHE;
}
return $cache_type;
}