<a id="cli-aws-amplifygen3-cache"></a>

# cache

## Description

Clear or refresh a deployment’s server-side data cache, the cache behind incremental static regeneration (ISR). Both commands pick entries by the cache tags your app assigns to them, for example with Next.js cacheTag.

`aws amplifygen3 cache purge` drops the entries, so the next request rebuilds them and waits for the result. `aws amplifygen3 cache revalidate` marks them stale, so visitors keep getting the stored content while a fresh copy is built in the background.

## Synopsis

```
cache
```

## Options

*None*

## Available Commands

* [purge](purge.md)
* [revalidate](revalidate.md)
