protected function _cacheConfig($action, $template = null)
    {
        if (empty($this->_cache)) {
            return [];
        }
        $template = $template ?: 'default';
        $key = 'cell_' . Inflector::underscore(get_class($this)) . '_' . $action . '_' . $template;
        $key = str_replace('\\', '_', $key);
        $default = [
            'config' => 'default',
            'key' => $key
        ];
        if ($this->_cache === true) {
            return $default;
        }

        return $this->_cache + $default;
    }
protected function _cacheConfig($action, $template = null)
    {
        if (empty($this->_cache)) {
            return [];
        }
        $template = $template ?: 'default';
        $key = 'cell_' . Inflector::underscore(get_class($this)) . '_' . $action . '_' . $template;
        $key = str_replace('\\', '_', $key);
        $default = [
            'config' => 'default',
            'key' => $key
        ];
        if ($this->_cache === true) {
            return $default;
        }

        return $this->_cache + $default;
    }
protected function _cacheConfig ( $ action , $ template = null ) { if ( empty ( $ this -> _cache ) ) { return [ ] ; } $ template = $ template ? : 'default' ; $ key = 'cell_' . Inflector :: underscore ( get_class ( $ this ) ) . '_' . $ action . '_' . $ template ; $ key = str_replace ( '\\' , '_' , $ key ) ; $ default = [ 'config' => 'default' , 'key' => $ key ] ; if ( $ this -> _cache === true ) { return $ default ; } return $ this -> _cache + $ default ; }
Generate the cache key to use for this cell.

If the key is undefined, the cell class and action name will be used.

@param string $action The action invoked.
@param string|null $template The name of the template to be rendered.
@return array The cache configuration.
Generate the cache key to use for this cell .