public function AcquiaPurgeQueueEfficient::createItem in Acquia Purge 7
Add a queue item and store it directly to the queue.
Parameters
$data: Arbitrary data to be associated with the new task in the queue.
Return value
TRUE if the item was successfully created and was (best effort) added to the queue, otherwise FALSE. We don't guarantee the item was committed to disk etc, but as far as we know, the item is now in the queue.
Overrides SystemQueue::createItem
File
- lib/
queue/ AcquiaPurgeQueueEfficient.php, line 162 - Contains EfficientQueue.
Class
- AcquiaPurgeQueueEfficient
- Efficient query bundling database queue.
Code
public function createItem($data) {
if (parent::createItem($data)) {
$this
->total()
->increase();
return TRUE;
}
return FALSE;
}