working on system management
This commit is contained in:
@@ -51,6 +51,13 @@ func cacheMiddleware(cfg CacheConfig, cache *cache.Cache) gin.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
// Don't cache VTL endpoints - they change frequently
|
||||
path := c.Request.URL.Path
|
||||
if strings.HasPrefix(path, "/api/v1/tape/vtl/") {
|
||||
c.Next()
|
||||
return
|
||||
}
|
||||
|
||||
// Generate cache key from request path and query string
|
||||
keyParts := []string{c.Request.URL.Path}
|
||||
if c.Request.URL.RawQuery != "" {
|
||||
|
||||
Reference in New Issue
Block a user