--- whois.admin.inc.orig 2010-01-29 10:25:11.000000000 +0000 +++ whois.admin.inc 2010-01-29 10:28:35.000000000 +0000 @@ -45,6 +45,23 @@ '#default_value' => variable_get('whois_log_watchdog', 1), '#description' => t('Log a watchdog entry for each whois lookup performed.'), ); + $form['whois_cache'] = array( + '#type' => 'fieldset', + '#title' => t('Cache configuration'), + '#collapsed' => TRUE, + ); + $form['whois_cache']['whois_cache_enable'] = array( + '#type' => 'checkbox', + '#title' => t('Enable cache'), + '#default_value' => variable_get('whois_cache_enable', 1), + '#description' => t('Enable the caching of whois records.'), + ); + $form['whois_cache']['whois_cache_time'] = array( + '#type' => 'textfield', + '#title' => t('Cache time'), + '#default_value' => variable_get('whois_cache_time', 86400), + '#description' => t('The length of time in seconds to cache whois lookup results.'), + ); return system_settings_form($form); }