Show
Ignore:
Timestamp:
03/31/07 04:19:48 (14 years ago)
Author:
exi
Message:

Some improvements for the battle summary, it went down from over 1500 db queries to 270 for a battle of ~55 kills.
I also improved handling of pods when people made it on a killmail with them.
The config class now writes directly into its cache during initialization, this should bring a few milliseconds.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.config.php

    r190 r197  
    9595        $db = new DBQuery(); 
    9696        $db->execute('select * from kb3_config where cfg_site=\''.KB_SITE."'"); 
     97        $config = &config::_getCache(); 
    9798        while ($row = $db->getRow()) 
    9899        { 
    99             config::put($row['cfg_key'], $row['cfg_value']); 
     100            $config[$row['cfg_key']] = $row['cfg_value']; 
    100101        } 
    101102        $config_init = true;