Curious about the Cerbos Config `compile.cacheDur...
# help
o
Curious about the Cerbos Config
compile.cacheDuration
setting. Is there a way to set this to infinite? They default value is 1 minutes, does this mean that Cerbos is recompiling my policies every minute? The way I am using Cerbos is building a Docker image with my policies in the image and using the disk driver, so they never change unless I redeploy a new version of the image. Would there be any performance benefit to caching forever?
c
Hey,
compile.cacheDuration
is infinite by default. Caching is on-demand. So setting it to one minute doesn't mean that Cerbos compiles all your policies every minute. It just recompiles a single policy if it is requested and if it has been evicted from the cache.
o
Ah!