Back to Withastro

Cache is not enabled.

src/content/docs/en/reference/errors/cache-not-enabled.mdx

latest300 B
Original Source

import DontEditWarning from '~/components/DontEditWarning.astro'

<DontEditWarning />

Astro.cache is not available because the cache feature is not enabled.

What went wrong?

Thrown when Astro.cache or context.cache is used but the cache feature has not been enabled in the Astro config.