das Keks.5403:

Hi.

What’s the time resolution of:
/v2/account/wallet
/v2/account/materials
/v2/account/bank
/v2/characters

How fast will the current data be available via the endpoints and will the results be cached for a while before providing new data?

Lawton Campbell.8517:

Those are all on a ~5 minute cache.

das Keks.5403:

Thanks for the information!
I think I’ll change the update frequency of my application to a little more than 5 minutes to prevent getting the same result twice.

Nabrok.9023:

If I called /v2/characters/[name] with a key that doesn’t have the builds permission and then immediately called it again with a key that does, would the second request just return the cached data from the first request or would it also include the specializations?

Lawton Campbell.8517:

If I called /v2/characters/[name] with a key that doesn’t have the builds permission and then immediately called it again with a key that does, would the second request just return the cached data from the first request or would it also include the specializations?

Cached data from the first request. The backend server just pulls the entire account/character blob from the database and caches it in its entirety — the permissions are enforced when serializing out the blob.

CodeX.8649:

Even the no-cache header doesn’t help ?

https://forum-en.guildwars2.com/forum/community/api/API-resolution-caching

Lawton Campbell.8517:

Nope, cache-control request headers are completely ignored.

Otherwise one of the game db servers would fall over <3