Use TCacheMap for saving the WebModules session

With this change, sessions are automatically "garbage collected" 24h after the
last request using this session.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1823 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-03-10 17:53:57 +00:00
parent 7bff1c4d7c
commit f6f7dce129
2 changed files with 11 additions and 8 deletions
+1 -1
View File
@@ -157,7 +157,7 @@ private:
CString m_sPage; // Gets filled by ResolveModule()
CSmartPtr<CWebSession> m_spSession;
static map<CString, CSmartPtr<CWebSession> > m_mspSessions;
static TCacheMap<CString, CSmartPtr<CWebSession> > m_mspSessions;
};
#endif // !_WEBMODULES_H