Changeset 1518 in ExiteCMS for trunk/includes/theme_functions.php


Ignore:
Timestamp:
07/02/08 22:32:48 (4 years ago)
Author:
hverton
Message:

made the houskeeping queries low-priority
fixed transparancy in some admin index images
removed more unused images from the template
fixed transparancy in the external_link image
update the report template to allow a report process to return an error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/theme_functions.php

    r1470 r1518  
    463463        $minute = 60; $hour = $minute * 60; $day = $hour * 24; 
    464464        // 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)."'"); 
    466466        // 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)."'"); 
    468468        // 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)."'"); 
    470470        // deactivate accounts with a bad email address after 90 days (available since v7.0 rev.1060) 
    471471        if ($settings['revision'] >= 1060) { 
     
    474474        // read threads indicators: use the defined threshold (available since v7.0 rev.1193) 
    475475        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); 
    477477        } 
    478478    } 
Note: See TracChangeset for help on using the changeset viewer.