You are here

function services_keyauth_cron in Services 7

Same name and namespace in other branches
  1. 6.2 auth/services_keyauth/services_keyauth.module \services_keyauth_cron()

Implements hook_cron().

Clear down old values from the nonce table.

File

auth/services_keyauth/services_keyauth.module, line 12
@author Services Dev Team

Code

function services_keyauth_cron() {
  $expiry_time = REQUEST_TIME - variable_get('services_key_expiry', 30);
  db_delete('services_timestamp_nonce')
    ->condition('timestamp', $expiry_time)
    ->execute();
}