Neos\Fusion\Core\Cache\RuntimeContentCache::getEnableContentCache PHP Метод

getEnableContentCache() публичный Метод

public getEnableContentCache ( ) : boolean
Результат boolean
    public function getEnableContentCache()
    {
        return $this->enableContentCache;
    }

Usage Example

Пример #1
0
 /**
  * Add a tag to the current cache segment
  *
  * During TS rendering the method can be used to add tag dynamicaly for the current cache segment.
  *
  * @param string $key
  * @param string $value
  * @return void
  * @api
  */
 public function addCacheTag($key, $value)
 {
     if ($this->runtimeContentCache->getEnableContentCache() === false) {
         return;
     }
     $this->runtimeContentCache->addTag($key, $value);
 }