Open
Description
Is your feature request related to a problem? Please describe.
Now SourceBans++ queries all servers again and again when we open SB page.
Describe the solution you'd like
I suggest add the query cache. Data may sometimes differ from real data, but the server will deal less with processing SB++ requests.
I see two ways for implementing cache:
- When user requests SB++ page, web checks the relevance of cached data, and if data is too old (saved 30 seconds ago, by example), he requests data again and saves in cache.
- Plugin sometimes sends data to DB manually (player list (with SteamIDs: this can also solve a problem with
status
parsing when we add a ban or comm ban fromServers
page), current map, hostname, max players slots, etc.).