Closed (fixed)
Project:
Performance Logging and Monitoring (D7)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2008 at 20:47 UTC
Updated:
3 Nov 2008 at 19:51 UTC
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
Comment #1
kbahey commentedThe code for cron has been refactored.
Please download the latest tarball and try again.
Comment #2
kbahey commentedComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.