You are here

function RecordingCacheControlClient::clear_url in Akamai 7

Same name and namespace in other branches
  1. 8 akamai.class.inc \RecordingCacheControlClient::clear_url()
  2. 8.2 akamai.class.inc \RecordingCacheControlClient::clear_url()
  3. 6.2 akamai.class.inc \RecordingCacheControlClient::clear_url()
  4. 7.3 akamai.class.inc \RecordingCacheControlClient::clear_url()
  5. 7.2 akamai.class.inc \RecordingCacheControlClient::clear_url()

Records the paths passed in.

Overrides AkamaiCacheControl::clear_url

File

./akamai.class.inc, line 174
akamai.class.inc Akamai is a registered trademark of Akamai Technologies, Inc. This class is an abstraction around the Akamai Cache Control API.

Class

RecordingCacheControlClient
Implementation of the AkamaiCacheControl interface that records what was sent to it. Hint: This is only useful for testing.

Code

function clear_url($paths) {
  if (!is_array($paths)) {
    $paths = array(
      $paths,
    );
  }
  $this->paths = $paths;
  return array(
    'success' => TRUE,
    'code' => '',
    'message' => '',
  );
}