Skip to content

Add cache to avoid repetitive API calls #32

@cotton105

Description

@cotton105

Description

Every time a new map/stage/game mode is selected, it triggers an API call. If going back to a previously viewed configuration, a cached version should be used, so that the API doesn't get flooded.

[2023-11-13T13:26:27.936] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMaps.
[2023-11-13T13:26:27.938] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMapStages?mapID=.
[2023-11-13T13:26:27.939] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getGameModes.
[2023-11-13T13:26:27.940] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=&stage=&gameModeID=.
[2023-11-13T13:26:30.403] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMapStages?mapID=1.
[2023-11-13T13:26:30.404] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=1&stage=&gameModeID=.
[2023-11-13T13:26:32.032] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMapStages?mapID=6.
[2023-11-13T13:26:32.032] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=6&stage=&gameModeID=.
[2023-11-13T13:26:33.923] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=6&stage=1&gameModeID=.
[2023-11-13T13:26:34.744] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=6&stage=2&gameModeID=.
[2023-11-13T13:26:35.789] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=6&stage=3&gameModeID=.
[2023-11-13T13:26:37.058] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=6&stage=&gameModeID=.
[2023-11-13T13:28:23.381] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=6&stage=3&gameModeID=.
[2023-11-13T13:28:24.595] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=6&stage=1&gameModeID=.
[2023-11-13T13:28:25.372] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=6&stage=2&gameModeID=.
[2023-11-13T13:28:26.112] [DEBUG] GET from ::ffff:127.0.0.1 for /api/getMatchupScores?mapID=6&stage=1&gameModeID=.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions