<#908 Replace pseudo-cache with proper cache in `o...
# osctrl
g
#908 Replace pseudo-cache with proper cache in `osctrl-api` Pull request opened by javuto Summary Remove `osctrl-api`’s direct Redis invalidation marker usage and wire it into the shared Redis-backed environment cache used by
osctrl-tls
. Changes • Added
EnvCache
support to
HandlersApi
. • Created
invalidateEnvCache(...)
helper for API handlers. • Initialized
NewRedisEnvCache
in
osctrl-api
startup and passed it into handlers. • Removed the old
RedisCache
handler dependency used only to set
envcache:invalidate:{uuid}
keys. • Invalidated the shared environment cache after API environment mutations: • create/update/delete • config patch • interval changes • enrollment/removal actions • package URL updates • certificate uploads • Updated cache-related comments to reflect direct Redis-backed cache invalidation. Validation GOCACHE=/tmp/osctrl-gocache go test ./pkg/cache ./pkg/settings ./pkg/environments ./cmd/api/handlers ./cmd/api ./cmd/tls/handlers ./cmd/tls jmpsec/osctrl