CacheableDependencyTrait::$cacheMaxAge

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php \Drupal\Core\Cache\CacheableDependencyTrait::cacheMaxAge
  2. 10 core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php \Drupal\Core\Cache\CacheableDependencyTrait::cacheMaxAge
  3. 11.x core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php \Drupal\Core\Cache\CacheableDependencyTrait::cacheMaxAge

Cache max-age.

Type: int

File

core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php, line 29

Class

CacheableDependencyTrait
Trait for \Drupal\Core\Cache\CacheableDependencyInterface.

Namespace

Drupal\Core\Cache

Code

protected $cacheMaxAge = Cache::PERMANENT;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.