You are here

public function QueueService::release in Purge 8.3

Release invalidation objects back to the queue.

Parameters

\Drupal\purge\Plugin\Purge\Invalidation\InvalidationInterface[] $invalidations: A non-associative array with invalidation objects to be released back to the queue, usually FAILED, PROCESSING or NOT_SUPPORTED. Once released, other processors can claim them again for further processing.

Overrides QueueServiceInterface::release

File

src/Plugin/Purge/Queue/QueueService.php, line 475

Class

QueueService
Provides the service that lets invalidations interact with a queue backend.

Namespace

Drupal\purge\Plugin\Purge\Queue

Code

public function release(array $invalidations) {
  $this->buffer
    ->set($invalidations, TxBuffer::RELEASING);
  $this->logger
    ->debug("deleting @no items.", [
    '@no' => count($invalidations),
  ]);
}