You are here

function performance_prune_details in Performance Logging and Monitoring 6.2

Same name and namespace in other branches
  1. 7.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
Implementation of hook_cron().

File

includes/performance.details.inc, line 109
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_query("DELETE FROM {performance_detail} WHERE timestamp <= %d", time() - 24 * 60 * 60);
}