Ignore:
Timestamp:
Dec 27, 2004, 3:30:49 PM (19 years ago)
Author:
plg
Message:
  • admin/update : filesystem synchronization process completely rewritten. How to speed up sync ? by avoiding recursivity !
  • admin/update : option to display verbose information details
  • admin/update : option to simulate only. No database insert, delete or update will be made
  • bug fixed : in admin/cat_list, if you delete a virtual category, you may create a gap in the rank list. This gap will generate errors when trying to move a category on this gap. Fixed by calling ordering and update_global_rank at category deletion.
  • admin/cat_list, only one query to insert a new virtual category (no need of a second query to update uppercats and global_rank)
  • for a given category, even if empty, the representing element must not be the one of a forbidden category for the current user
  • generation time optionnaly displayed on the bottom of each page becomes more price : number of SQL queries and SQL time added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r618 r659  
    462462function pwg_query($query)
    463463{
    464   global $conf;
     464  global $conf,$count_queries,$queries_time;
    465465 
    466466  $start = get_moment();
    467467  $result = mysql_query($query);
    468 
     468 
     469  $time = get_moment() - $start;
     470  $count_queries++;
     471  $queries_time+= $time;
     472 
    469473  if ($conf['show_queries'])
    470474  {
    471     global $count_queries,$queries_time;
    472    
    473     $time = get_moment() - $start;
    474     $count_queries++;
    475    
    476475    $output = '';
    477476    $output.= '<pre>['.$count_queries.'] '."\n".$query;
    478     $queries_time+= $time;
    479477    $output.= "\n".'(this query time : '.number_format( $time, 3, '.', ' ').' s)</b>';
    480478    $output.= "\n".'(total SQL time  : '.number_format( $queries_time, 3, '.', ' ').' s)';
    481479    $output.= '</pre>';
     480   
    482481    echo $output;
    483482  }
Note: See TracChangeset for help on using the changeset viewer.