Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 42f3579

Browse files
authored
cache the username with uuid as key for 1 hour
1 parent e407974 commit 42f3579

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎code.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function GETIGN(uuid) {
1515
var playerJSON = UrlFetchApp.fetch(url.toString());
1616
var playerObject = JSON.parse(playerJSON);
1717
username = playerObject.username;
18+
cache.put(uuid, username, 3600);
1819
}
1920
return username;
2021
} catch (e) {

0 commit comments

Comments
 (0)