You are here

function services_cron in Services 6

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

Implementation of hook_cron().

Clear down old values from the nonce table.

File

./services.module, line 13
@author Services Dev Team

Code

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