You are here

public function AcquiaPurgeService::history in Acquia Purge 7

Maintains a runtime list of purged URLs for UI visualization.

Parameters

string $url: (optional) When passed in the given URL will be added to the history log.

Return value

string[] The full non-associative array with URLs kept in memory.

2 calls to AcquiaPurgeService::history()
AcquiaPurgeService::process in lib/AcquiaPurgeService.php
Process as many items from the queue as the runtime capacity allows.
AcquiaPurgeService::stats in lib/AcquiaPurgeService.php
Retrieve progress statistics.

File

lib/AcquiaPurgeService.php, line 317
Contains AcquiaPurgeService.

Class

AcquiaPurgeService
The Acquia Purge service.

Code

public function history($url = NULL) {
  if (!is_null($url)) {
    $this->history[] = $url;
  }
  return $this->history;
}