add tui features
Some checks failed
CI / test-build (push) Failing after 2m26s

This commit is contained in:
2025-12-15 01:08:17 +07:00
parent 96a6b5a4cf
commit 507961716e
12 changed files with 2793 additions and 8 deletions

View File

@@ -138,11 +138,9 @@ func (a *App) cacheMiddleware(next http.Handler) http.Handler {
// Skip caching for authenticated endpoints that may have user-specific data
if !a.isPublicEndpoint(r.URL.Path) {
// Check if user is authenticated - if so, include user ID in cache key
user, ok := getUserFromContext(r)
if ok {
// For authenticated requests, we could cache per-user, but for simplicity, skip caching
// In production, you might want per-user caching
// Check if user is authenticated - if so, skip caching
// In production, you might want per-user caching by including user ID in cache key
if _, ok := getUserFromContext(r); ok {
next.ServeHTTP(w, r)
return
}