You are here

function _acquia_purge_get_diagnosis_pressflow in Acquia Purge 6

Report whether the user runs Pressflow, absolutely necessary.

@returns Associative array with the following elements:

  • title: The name of the requirement.
  • value: The current value (e.g., version, time, level, etc).
  • description: The description of the requirement/status.
  • severity: ACQUIA_PURGE_SEVLEVEL_INFO, _OK, _WARNING, _ERROR

Parameters

string $t: Name of the t() function to call.

File

./acquia_purge.diagnostics.inc, line 323
Self-test diagnostic test functions for _acquia_purge_get_diagnosis().

Code

function _acquia_purge_get_diagnosis_pressflow($t) {
  $pressflow = function_exists('drupal_page_cache_header_external');
  $test = array(
    'severity' => ACQUIA_PURGE_SEVLEVEL_OK,
    'value' => $pressflow ? $t('Installed') : $t('Not installed'),
    'title' => $t('Pressflow'),
  );
  if (!$pressflow) {
    $test['severity'] = ACQUIA_PURGE_SEVLEVEL_ERROR;
    $test['description'] = $t('Your are running ordinary Drupal 6 which has' . ' no support for external caches like the load balancers Acquia Cloud' . ' has installed for you. This is very bad, as it will put enormous' . ' stress on your web servers, all the time. Please upgrade your code' . ' base to the fully-compatible Pressflow as soon as you can. Although' . ' testing will be required, the differences remain relatively small and' . ' will improve the performance of your site dramatically.');
  }
  return $test;
}