You are here

public static function Messaging_Store::cron_process in Messaging 6.4

Process messages on cron

File

includes/messaging_store.class.inc, line 35
Database storage for the messaging framework

Class

Messaging_Store
Default storage and queueing system for Messaging

Code

public static function cron_process() {

  // Pass on a time out condition, that will be based on 'max_execution_time'
  $limit['timeout'] = variable_get('cron_semaphore', 0) + ini_get('max_execution_time') - self::TIME_MARGIN;
  self::queue_process($limit);
  self::queue_expire_messages();
  self::queue_expire_logs();
}