Am I understanding the new gamepass cache right?

So the cache updates every ten seconds, right? Does that mean that if the player buys a game pass in-game, it will take 10 seconds for the game to realize they bought it?

2 Likes

As far as I know, this is only the case if they don’t own it. If you use UserOwnsGamePassAsync and they own the game pass, the result will be cached as true for the rest of the session. If not, it will return false and that result will cache for 10 seconds (meaning it’ll return false for those 10 seconds).

Reference: [Live] Changes to Game Passes - #113 by Maximum_ADHD

4 Likes

Alright, so if the player buys the gamepass, it should register that they have it immediately?

If the player buys a game pass within 10 seconds of the last usage of UserOwnsGamePassAsync associated with their UserId, the function will not immediately return true, it’ll return false as per the cached value. If the function is used after they buy the game pass, it’ll return true and the result will be saved.

Thanks