Changeset 1518 in ExiteCMS for trunk/includes/theme_functions.php
- Timestamp:
- 07/02/08 22:32:48 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/theme_functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/theme_functions.php
r1470 r1518 463 463 $minute = 60; $hour = $minute * 60; $day = $hour * 24; 464 464 // flood control: set to 5 minutes 465 $result = dbquery("DELETE FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time() - $minute * 5)."'");465 $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time() - $minute * 5)."'"); 466 466 // thread notifies: set to 14 days 467 $result = dbquery("DELETE FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time() - $day * 14)."'");467 $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time() - $day * 14)."'"); 468 468 // new registered users: set to 3 days 469 $result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time() - $day * 3)."'");469 $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time() - $day * 3)."'"); 470 470 // deactivate accounts with a bad email address after 90 days (available since v7.0 rev.1060) 471 471 if ($settings['revision'] >= 1060) { … … 474 474 // read threads indicators: use the defined threshold (available since v7.0 rev.1193) 475 475 if ($settings['revision'] >= 1193) { 476 $result = dbquery("DELETE FROM ".$db_prefix."threads_read WHERE thread_last_read < '".$settings['unread_threshold']."'", false);476 $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."threads_read WHERE thread_last_read < '".$settings['unread_threshold']."'", false); 477 477 } 478 478 }
Note: See TracChangeset
for help on using the changeset viewer.
