You are here

function performance_prune_details in Performance Logging and Monitoring 7.2

Same name and namespace in other branches
  1. 6.2 includes/performance.details.inc \performance_prune_details()

Helper function to prune detail log on cron.

Return value

void

1 call to performance_prune_details()
performance_cron in ./performance.module
Implements hook_cron().

File

includes/performance.details.inc, line 133
Performance module detail logging related functions. Can be overridden by adding $conf['performance_detail_logging'] = 'path/to/your/file' in settings.php.

Code

function performance_prune_details() {
  db_delete('performance_detail')
    ->condition('timestamp', REQUEST_TIME - 24 * 60 * 60, '<=')
    ->execute();
}