These are chat archives for arenanet/api-cdi

14th
Aug 2017

my bets are on lye mistyping 2 minutes as 1200 seconds

Cache times are configured correctly:

                // 5 minutes
                "default" : 300000,
                // 20 minutes
                "/v2/commerce/listings" : 1200000,
                // 1 minute
                "/v2/commerce/transactions" : 60000,
                // 1 second
                "/v2/wvw/matches" : 1000,
                // 2 minutes
                "/v2/commerce/prices" : 120000

but I think there's a bug somewhere in the actual caching mechanism which is kind of scary

(those times are in ms)
Eearslya Sleiarion
@Eearslya
Aug 14 2017 17:06
Oh, huh, I thought wvw was 30 seconds
I futzed with it at some point
also there might be bugs in the caching layer
Eearslya Sleiarion
@Eearslya
Aug 14 2017 17:07
So, wait, the endpoint itself is cached at 1 second..Does the API server get WvW data realtime, though?
BoyC
@BoyC
Aug 14 2017 17:09
based on what i saw when i did the wvw stuff for taco which is set at 5 seconds, yeah it's pretty much realtime
@Eearslya it's kind of convoluted, the API WvW backend server reads from event logs and from a centralized datasource
so it might or might not actually be realtime up-to-date
Eearslya Sleiarion
@Eearslya
Aug 14 2017 17:11
Hmm. The Date header returns the server's time, right? Because a lot of websites end up having mismatched timers due to differing clocks..
it does
but the frontend/backend servers for the API run in separate windows domains
so they might have different clocks
Eearslya Sleiarion
@Eearslya
Aug 14 2017 17:13
So is last_flipped based on the API server's clock?
I'm actually not sure which clock that's from
There's like 3 different clocks
I think in the current implementation that comes from the map instance server's clock
(in previous implementations it came from the API backend's clock)
Eearslya Sleiarion
@Eearslya
Aug 14 2017 17:14
Which should be the..authoritative one, right? The one that actually determines things like RI duration?
:shrug:
Eearslya Sleiarion
@Eearslya
Aug 14 2017 17:15
welp
I've seen the in-game RI timers be off
so like
+/- 10 seconds for everything?
Eearslya Sleiarion
@Eearslya
Aug 14 2017 17:15
Yeah, that's true, too. I remember one reset night some objectives had RI 7 minutes after being captured
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:15
sorry to have doubted your typing abilities.
gifted typing abilities
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:17
to be fair anyone who can balance brackets I include as gifted
Eearslya Sleiarion
@Eearslya
Aug 14 2017 17:17
Wiki queries always confuse the hell out of me
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:18
at least the wikicode syntax is a lot cleaner than the javascript wiki queries
:D
for the record I'm horrible at both
Eearslya Sleiarion
@Eearslya
Aug 14 2017 17:19
Yeah but javascript doesn't have those weird sometimes-double, sometimes-triple brackets XD
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:19
triple for parameter, double for template isn't too bad to remember eventually.
darthmaim
@darthmaim
Aug 14 2017 17:20
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:20
your disgusting difficult to read template angers me :D
I jest
darthmaim
@darthmaim
Aug 14 2017 17:20
:D
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:21
well the initial stuff is clean
darthmaim
@darthmaim
Aug 14 2017 17:21
I tried to make it as clean as possible
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:21
templating it is the hard bit
ptolstoi
@ptolstoi
Aug 14 2017 17:22
luckely the template stuff is not turing complete ;D
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:22
to be fair that particular template does amazing stuff.
darthmaim
@darthmaim
Aug 14 2017 17:23
thats the last template I wrote before it made me quit the wiki :D
when trying to fix a bug I basically always rewrote it from scratch
because there is no way to debug that...
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:27
honestly I don't know why you'd bother making that a template and not force users to type it out by hand
:D
  • [[location a]]
    ** [[location b]].
darthmaim
@darthmaim
Aug 14 2017 17:28
because you can just use {{Location|location b}} now and it "just works"
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:28
except when users will be users and want something else displayed.. like icons
darthmaim
@darthmaim
Aug 14 2017 17:30
there was some more stuff planed, for example listing all npc in an area
without doing anything but including the location template on the npc page
ChieftainAlex
@ChieftainAlex
Aug 14 2017 17:30
in spite of some of my more weird templates, my intention was always to produce simpler templates so that nobody would bug me later
darthmaim
@darthmaim
Aug 14 2017 17:32
oh and for icons, if you just add a living story page it shows the living story icon for example
magic™
Archomeda
@Archomeda
Aug 14 2017 23:52
@BoyC yeah, i booted up taco again, and this time the dead keys bug persisted the whole time
so just poke me whenever you want to try out a solution :D