/archive/donations/plugins/maps/old/ · last edited 02 Oct 2017 · Community
We noticed that the premium currency shop was displaying incorrect stock levels for the limited edition hats during the weekend event. Players reported that items marked as out of stock were still purchasable, leading to confusion and frustration in the general chat. The issue stemmed from a caching error in our lightweight inventory script that failed to sync with the database in real time for non-admin users.
The root cause was traced to the server restart that occurred earlier that morning. The restart process did not properly clear the local cache for the shop module, leaving stale data active for several hours. Since we run on a single VPS with limited resources, we opted for a simple cache file instead of a more robust session management system, which introduced this single point of failure.
To resolve the immediate problem, we manually adjusted the stock levels and refunded the affected players with in-game credits. We also added a manual cache flush command to the moderation tools so we can clear the data instantly if it happens again. This temporary fix prevented further confusion while we worked on a permanent solution.
Going forward, we have updated the server startup script to automatically clear the shop cache on every restart. We also added a small logging entry that alerts the mods via the internal console if the cache fails to clear. This ensures that any future restarts will reflect accurate inventory data without requiring manual intervention.
The supporter tier benefits remain unchanged, but we have clarified the text in the shop description to state that stock levels are updated every twenty-four hours rather than in real time. This manages expectations and reduces the likelihood of similar complaints. We will monitor the shop logs for the next week to ensure the new startup script is functioning correctly.