| 1 |
<?php |
<?php |
| 2 |
// $Id: search_keywords.module,v 1.15 2006/09/15 14:31:26 sugree Exp $ |
// $Id: search_keywords.module,v 1.16 2006/12/08 18:09:33 sugree Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 117 |
*/ |
*/ |
| 118 |
function search_keywords_cron() { |
function search_keywords_cron() { |
| 119 |
/* clean expired access logs */ |
/* clean expired access logs */ |
| 120 |
db_query('DELETE FROM {accesslog} WHERE timestamp < %d', time() - variable_get('search_keywords_flush_accesslog_timer', 259200)); |
db_query('DELETE FROM {search_keywords_log} WHERE timestamp < %d', time() - variable_get('search_keywords_flush_accesslog_timer', 259200)); |
| 121 |
} |
} |
| 122 |
|
|
| 123 |
/** |
/** |