I installed this on my test site. It has no APC. The cron job failed at line 212.

The following is the cron hook code in the module:

function performance_cron() {
  $list = performance_apc_list_all();
  if (count($list)) {
    $threshold = variable_get('performance_threshold_accesses', 0);
    foreach($list as $key) {
      if ($data = apc_fetch($key)) {
        if ($data['num_accesses'] <= $threshold) {
          apc_delete($key);
        }
      }
    }
  }
}

I think it assumes APC is present. It looks like cron is required only when APC is installed - perhaps the following lines at the top will solve the problem.

  if (!function_exists('apc_store')) {
    return;
  }

Comments

kbahey’s picture

Status: Active » Postponed (maintainer needs more info)

The code for cron has been refactored.

Please download the latest tarball and try again.

kbahey’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.