These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

CREST /wars/ issue, maybe, maybe its a feature...

Author
Kelath Erebus
Federal Navy Academy
Gallente Federation
#1 - 2016-05-04 17:42:34 UTC
Hello,

So I'm using the following code:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://crest-tq.eveonline.com/wars/');
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$result = json_decode($result,true);

$numWars = $result['totalCount'];

curl_close($ch);

echo $numWars;
exit();


Which gives me the totalCount of 485412 which I assume is total war count
Now take into account that today is May 4th, 2016, and according to the documentation /wars/ route has a 1 day cache, which means shouldn't I be getting war data up until yesterday May 3rd, however totalCount of 485412 gives me war dec info for April 29th.

In the interim I'll create a function that does the opposite of my grab historical data and increment forward until I get blank records.

Thanks!
Kelath
Thebriwan
LUX Uls Xystus
#2 - 2016-05-06 12:05:21 UTC
Caching only means that you will not get a different result set until the caching timer expires.
Maybe you have to walk through the resultset.
Desmont McCallock
#3 - 2016-05-06 13:19:49 UTC
1 day cache doesn't mean that you get 1 days data, but that the data will update every 1 day.