You are here

public function PurgeDomainDrupal::cache in Purge 7.2

Set the domain to the base urls domain.

Overrides PurgeCacheable::cache

File

includes/purge.class.inc, line 401
Contains all class and interface definitions for Purge.

Class

PurgeDomainDrupal
Class definition for the Drupal domain item.

Code

public function cache() {
  $base_url = $GLOBALS['base_url'];
  $this->domains = array(
    parse_url($base_url, PHP_URL_HOST),
  );
}