function performance_cron in Performance Logging and Monitoring 6
Same name and namespace in other branches
- 5 performance.module \performance_cron()
- 6.2 performance.module \performance_cron()
- 7.2 performance.module \performance_cron()
- 7 performance.module \performance_cron()
Implementation of hook_cron().
File
- ./
performance.module, line 93 - Logs detailed and/or summary page generation time and memory consumption for page requests. Copyright Khalid Baheyeldin 2008 of http://2bits.com
Code
function performance_cron() {
// One day ago.
$timestamp = time() - 24 * 60 * 60;
$threshold = variable_get('performance_threshold_accesses', 0);
foreach (performance_data_stores() as $store => $data) {
if ($data['#enabled']) {
call_user_func('performance_prune_' . $store, $timestamp, $threshold);
}
}
}