Automatically cleanup cache once a day on the dedicated server.

This commit is contained in:
lotodore
2007-10-25 21:20:35 +00:00
parent d0cea553df
commit d0c34c572b
4 changed files with 31 additions and 12 deletions
+3
View File
@@ -102,6 +102,7 @@ protected:
void RequestPlayerAvatar(SessionWrapper session);
void CloseSessionLoop();
void RemoveGameLoop();
void CleanupAvatarCache();
void InternalAddGame(boost::shared_ptr<ServerGameThread> game);
void InternalRemoveGame(boost::shared_ptr<ServerGameThread> game);
@@ -173,6 +174,8 @@ private:
unsigned m_totalPlayersLoggedIn;
unsigned m_totalGamesStarted;
ServerStats m_lastStatData;
boost::timers::portable::microsec_timer m_cacheCleanupTimer;
};
#endif