Skip to main content

cache_enabled

Function cache_enabled 

Source
pub fn cache_enabled() -> bool
Expand description

True when the cache is enabled by the current environment.

A cache with nowhere to live is off, not “on, writing somewhere arbitrary”. That is the state a missing cache root degrades into, so every read and write path already routes around it through the checks they had.