working on system management
This commit is contained in:
@@ -304,6 +304,13 @@ func (h *Handler) DeleteZFSPool(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Invalidate cache for pools list
|
||||
if h.cache != nil {
|
||||
cacheKey := "http:/api/v1/storage/zfs/pools:"
|
||||
h.cache.Delete(cacheKey)
|
||||
h.logger.Debug("Cache invalidated for pools list", "key", cacheKey)
|
||||
}
|
||||
|
||||
c.JSON(http.StatusOK, gin.H{"message": "ZFS pool deleted successfully"})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user