You are here

public function AcquiaPurgeQueueSmart::__construct in Acquia Purge 7

Construct a AcquiaPurgeQueueSmart instance.

Parameters

AcquiaPurgeStateStorageInterface $state: The state storage required for the queue counters.

Overrides AcquiaPurgeQueueEfficient::__construct

File

lib/queue/AcquiaPurgeQueueSmart.php, line 30
Contains SmartQueue.

Class

AcquiaPurgeQueueSmart
Efficient query bundling database queue that disregards expired queue items.

Code

public function __construct(AcquiaPurgeStateStorageInterface $state) {
  parent::__construct($state);
  $this->ttl = (int) variable_get('page_cache_maximum_age', 0);
}