How-to
1 min read

Managing Vercel Data Cache

Learn how to enable, disable, and manage your usage for Vercel Data Cache
Table of Contents

Data Cache is available in Beta on all plans

Vercel Data cache is automatically enabled for you when you deploy a Next.js project thats uses App Router and Next.js Cache to Vercel.

Use the following in your Next.js application to opt out of fetch caching:

export const fetchCache = 'force-no-store';

You can also opt out individual fetches by using the cache option:

const res = await fetch('https://example.com', { cache: 'no-store' });

To view your usage for Data Cache:

  1. On your dashboard, navigate to the Usage tab.
  2. Under Data Cache, you'll be able to see your the total usage for your team or account including bandwidth, revalidations, and requests.
You need to have an owner role to perform this task.

In some circumstances, you may need to delete all cached data and force revalidation. You can do this by purging the Data Cache:

  1. Under your project, go to the Settings tab.
  2. In the Data Cache section, select Purge Everything.
  3. On the dialog, confirm that you wish to delete and click the Continue & Purge Everything button.

Purging your Data Cache will create a temporary increase in request times for users as new data needs to be refetched.

Last updated on May 25, 2024