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.
 

Long cache time?

Author
Osku Rei
Pixel 6
#1 - 2012-03-25 00:54:27 UTC
I just did a call to the member tracking API:

http://wiki.eve-id.net/APIv2_Corp_MemberTracking_XML

This uses the:

Quote:
Modified Short Cache Style
The same in almost every respect to the short cache style, this particular caching style changes the cachedUntil timer semantics slightly. Instead of telling you when the data will be updated, you will always be told the cache interval. In effect, this is used to spread out requests on global pages that are hit often.
For example, this style is used on the map data pages. CCP wants to prevent stampeding (everybody requesting the same resource at the same time). As long as you obey the cachedUntil timer, all will be well



Here is the interesting bit of the returned html:

public 'currentTime' => string '2012-03-25 00:48:10' (length=19)

public 'cachedUntil' => string '2012-03-25 05:49:30' (length=19)

A 5 hour (might be 4, don't know if CCP include DST) long cache?... am I missing something?

Next generation of lottery tracker coming soon! http://evelotterytracker.com/

Please like my post if it has helped you :)

Molly Bidwell
Sebiestor Tribe
Minmatar Republic
#2 - 2012-03-28 18:56:44 UTC
I just got a 6 hour cache time (i.e. cachedUntil was 6 hours in the future) on a call to /char/AssetList.xml.aspx

Seems excessive and makes it rather hard to track my inventory.

Is this working as intended?
Dragonaire
Here there be Dragons
#3 - 2012-03-29 04:33:23 UTC
AssetList use to be 23 hours be glad they reduced it Blink

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Osku Rei
Pixel 6
#4 - 2012-03-31 19:53:18 UTC
Anyone?

Next generation of lottery tracker coming soon! http://evelotterytracker.com/

Please like my post if it has helped you :)

Dragonaire
Here there be Dragons
#5 - 2012-03-31 21:52:33 UTC
What part of the answer you gave yourself in your first post don't you understand?

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.

Osku Rei
Pixel 6
#6 - 2012-03-31 23:14:07 UTC
Dragonaire wrote:
What part of the answer you gave yourself in your first post don't you understand?


Member tracking can't be a 5 hour cache.. that's just stupid

Next generation of lottery tracker coming soon! http://evelotterytracker.com/

Please like my post if it has helped you :)

Dragonaire
Here there be Dragons
#7 - 2012-04-01 02:48:27 UTC
The cache time is 6 hours but if it's already been cached you'll see some different times. BTW be glad that most of the APIs don't just return error messages when you ignore the cacheUntil time like they use to.

Just so you know everything in the APIs is done in UTC which doesn't have daylight savings time.

Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.