You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: ResponseIdValidationService owns its IMemoryCache; remove shared SizeLimit; remove dead cleanupOldSessions JS
- ResponseIdValidationService now creates and owns a dedicated MemoryCache
instance (parameterless DI ctor) rather than injecting the shared
IMemoryCache. This prevents the SizeLimit constraint from forcing every
other IMemoryCache caller in the app to call SetSize, which would cause
runtime InvalidOperationExceptions in ASP.NET Core's built-in caches.
- An IMemoryCache overload ctor is retained for unit test injection.
- Remove SizeLimit from AddMemoryCache() in Program.cs; the dedicated
cache in ResponseIdValidationService already carries SizeLimit=10_000.
- Remove cleanupOldSessions() from chat-module.js: loadChatHistory()
already enforces the 2-hour TTL on load, making the 7-day cleanup
function unreachable dead code.
0 commit comments