- New "Sovereignty" and "Faction warfare" data added, closed #853
- New ESI data import for wormhole type data from _ESI_, closed #852 - New ESI data import static wormholes, closed #852 - Improved performance for character authorization (PHP). Reduced number of _SQL_ queries. - Improved HTTP cache header for `api/map/initData`, 'api/user/getEveServerStatus' ajax requests
This commit is contained in:
@@ -91,14 +91,16 @@ class Route extends Controller\AccessController {
|
||||
* -> this data is equal for EACH route search (does not depend on map data)
|
||||
*/
|
||||
private function setStaticJumpData(){
|
||||
$query = "SELECT * FROM system_neighbour";
|
||||
$rows = $this->getDB()->exec($query, null, $this->staticJumpDataCacheTime);
|
||||
if($universeDB = $this->getDB('UNIVERSE')){
|
||||
$query = "SELECT * FROM system_neighbour";
|
||||
$rows = $universeDB->exec($query, null, $this->staticJumpDataCacheTime);
|
||||
|
||||
if(count($rows) > 0){
|
||||
array_walk($rows, function(&$row){
|
||||
$row['jumpNodes'] = array_map('intval', explode(':', $row['jumpNodes']));
|
||||
});
|
||||
$this->updateJumpData($rows);
|
||||
if(count($rows) > 0){
|
||||
array_walk($rows, function(&$row){
|
||||
$row['jumpNodes'] = array_map('intval', explode(':', $row['jumpNodes']));
|
||||
});
|
||||
$this->updateJumpData($rows);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user