You are here

public static function AcquiaPurgeExecutorPageCache::isEnabled in Acquia Purge 7

Determine if the executor is enabled or not.

Parameters

AcquiaPurgeService $service: The Acquia Purge service.

Overrides AcquiaPurgeExecutorInterface::isEnabled

File

lib/executor/AcquiaPurgeExecutorPageCache.php, line 16
Contains AcquiaPurgeExecutorPageCache.

Class

AcquiaPurgeExecutorPageCache
Executor that pre-clears URLs from Drupal's page cache.

Code

public static function isEnabled(AcquiaPurgeService $service) {
  if ($service
    ->hostingInfo()
    ->isPageCacheFake()) {
    return FALSE;
  }
  return TRUE;
}