You are here

function services_cron in Services 5

Same name and namespace in other branches
  1. 6 services.module \services_cron()

Implementation of hook_cron().

Clear down old values from the nonce table.

File

./services.module, line 330
The module which provides the core code for drupal services

Code

function services_cron() {
  $expiry_time = time() - variable_get('services_key_expiry', 30);
  db_query("DELETE FROM {services_timestamp_nonce} WHERE timestamp < '%s'", $expiry_time);
}