CacheCollector::$cacheCreated

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::cacheCreated
  2. 9 core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::cacheCreated
  3. 8.9.x core/lib/Drupal/Core/Cache/CacheCollector.php \Drupal\Core\Cache\CacheCollector::cacheCreated

Stores the cache creation time.

Type: int

Deprecated

in drupal:11.5.0 and is removed from drupal:12.0.0. If checking whether the cache item was loaded, you can check the loadedData property instead.

See also

https://www.drupal.org/project/drupal/issues/3496328

File

core/lib/Drupal/Core/Cache/CacheCollector.php, line 85

Class

CacheCollector
Default implementation for CacheCollectorInterface.

Namespace

Drupal\Core\Cache

Code

protected $cacheCreated;

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