BackendChain::garbageCollection

public 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 207

Class

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

Namespace

Drupal\Core\Cache

Code

1
2
3
4
5
public function garbageCollection() {
  foreach ($this->backends as $backend) {
    $backend->garbageCollection();
  }
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.