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.
 

Confusion Over Short Cache Modified.

Author
Smallevils
Association of Commonwealth Enterprises
#1 - 2012-05-14 23:56:53 UTC
Hi Guys.

I have a slight confusion in understanding the Short Cache Modified.

EveDev (http://wiki.eve-id.net/APIv2_Cache_Styles) definition seems to indicate that short Modified cacheduntil is not the time at which it is the new data is available but rather an Interval you must wait.

In order to get around time difference, i am subtracting cached until times from the eve time provided to create durations. These durations are then stored along with MY servers time to to give me a time to recall api for new data.

If i go with EveDev definition, then i should simply take the cached until as a duration in hours:minutes:second and store that. However, when i look, i can see that doing the normal time maths still results in the correct cahce time. This would suggest that the modified cache until is still set as time until u can call again, and NOT a duration ?


Can someone clarify this for me, before i go an break my portal.

thx
Small
Desmont McCallock
#2 - 2012-05-15 06:03:06 UTC
CachedUntil of an API call is reference to the time (UTC) you can call the API again and get new data (if any). Calling the API before that will result in receiving the same data you already have.
Smallevils
Association of Commonwealth Enterprises
#3 - 2012-05-19 21:19:45 UTC
The issue i still have is. If i go wit the above posters reply, then effectively there is NO difference between short cached and modified short cache.

Can some Dev or CCP dude give em a clear definition of the differnce plz. the way i read EvE devs description, it says that the semantics of chacheuntil have changed so that now it gives an interval. In other words this is the duration that cpp wish me to wait till i make another request, and does not stipulate when data is actually updated by the server. This makes sense if cpp is trying to spread-out calls to busy scripts. The issue is, i am nto really sure if this is the case.

If it is the case, then for short cache, the cacheuntil is the server time at which data is updated, so no point in calling for it till then. In the case of modified, the cacheuntil is not a TIME, but a duration. I know the distinction is fine, but it effects how i handle the data.

ATM, use the server time and chacheduntil to CREATE a duration, that i store with my LOCAL server time, this deals with the issue of different times for my server and the eve server. If the eve dev deffintion is correct, i do nto have to do this for modified cache, as the cache until IS the duration. However, the above poster is inferring that the cacheduntil timer is still a time,.

I really need someone to clarify the difference between short cached and modified shirt cached for me. T

hx