> ## 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.

export const AdminRoleBadge = ({tip = "This feature requires an organization owner, an admin role or the corresponding permission. Regular Members do not have access.", title = "Admin Only", cta = "View roles", href = "/management/roles", disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="lock" color="orange" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

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.

## Managing cache

Open [**Review > Caches**](https://app.coderabbit.ai/review/cache). You need **Read** access to **Repository Settings** to view and inspect caches.

<Info>
  This management page is not available on self-hosted CodeRabbit instances.
</Info>

### View caches

The list shows caches that are ready to use. Search, filter, or sort the list to find a cache, and use the pagination controls to move between result pages. When a Cache ID is shortened in the table, hover over it to reveal the full value.

### Delete a cache

<AdminRoleBadge tip="Deleting a reusable cache requires an organization administrator with Write access to Repository Settings." />

Organization administrators with **Write** access to **Repository Settings** can delete a cache to force CodeRabbit to build a fresh copy. The next review, chat, or fix for that repository may take longer while the cache is rebuilt.

Caches expire automatically after seven days.

## 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>
