public static function Notifications_Queue::process_clean in Notifications 6.4
Clean up queue and events before starting process
1 call to Notifications_Queue::process_clean()
- Notifications_Queue::process_cron in includes/
notifications_queue.class.inc - Callback for Drupal cron
File
- includes/
notifications_queue.class.inc, line 138
Class
- Notifications_Queue
- Queue management and processing
Code
public static function process_clean() {
// Clean up expired logs from queue if logging enabled
if ($keep = variable_get('notifications_log', 0)) {
db_query("DELETE FROM {notifications_queue} WHERE cron = 0 AND sent < %d", time() - $keep);
}
// Clean up event table
self::event_clean();
}