> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Caching

> CodeRabbit provides caching capabilities for code and dependencies to accelerate the review process. This feature enhances your development workflow by delivering faster feedback.

A reusable sandbox cache is a saved, prepared copy of a repository and its installed dependencies. CodeRabbit creates these caches during reviews, Change Stack chat, and Finishing Touch runs so later runs can start faster.

## Security and privacy

* Cached data is encrypted (except for OSS projects)
* Cached data is never used for training
* Cached data is used exclusively for speeding up reviews
* Cached data expires after a maximum of seven days

## Disable caching

To opt out of caching, set `reviews.disable_cache` to `true` in `.coderabbit.yaml`, or enable `Review - Disable Cache` in the dashboard at either the organization or repository level. The setting defaults to `false`.

Review details display `Cache: Disabled due to Reviews > Disable Cache setting` when this setting is active. This indicator is distinct from the data-retention opt-out message described below.

No migration is required. Caching remains enabled by default.

<Info>
  On self-hosted CodeRabbit, you can also disable all data retention organization-wide by setting `knowledge_base.opt_out` to `true`. See [Opt out of data retention](/knowledge-base#opt-out-of-data-retention).
</Info>
