If a summoner is not in the database, a request gets sent to Riot's API. However, a user shouldn't be able to spam search the site for an invalid summoner.
One solution is to keep a list of recently queried summoner names (standardized names) plus their region and shortcut to a summoner-not-found page until the name-region combination expires from said list.
If a summoner is not in the database, a request gets sent to Riot's API. However, a user shouldn't be able to spam search the site for an invalid summoner.
One solution is to keep a list of recently queried summoner names (standardized names) plus their region and shortcut to a summoner-not-found page until the name-region combination expires from said list.