You are here

public function BackendChain::garbageCollection in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Cache/BackendChain.php \Drupal\Core\Cache\BackendChain::garbageCollection()

Performs garbage collection on a cache bin.

The backend may choose to delete expired or invalidated items.

Overrides CacheBackendInterface::garbageCollection

File

core/lib/Drupal/Core/Cache/BackendChain.php, line 213
Contains \Drupal\Core\Cache\BackendChain.

Class

BackendChain
Defines a chained cache implementation for combining multiple cache backends.

Namespace

Drupal\Core\Cache

Code

public function garbageCollection() {
  foreach ($this->backends as $backend) {
    $backend
      ->garbageCollection();
  }
}