nx/docs/shared/recipes/running-tasks/change-cache-location.md

15 lines
454 B
Markdown

---
title: Change Cache Location
description: Learn how to customize where Nx stores its cache files by modifying the cacheDirectory setting in your nx.json configuration.
---
# Change Cache Location
By default the cache is stored locally in `.nx/cache`. Cache results are stored for a week before they get deleted. You can customize the cache location in the `nx.json` file:
```json {% fileName="nx.json"%}
{
"cacheDirectory": "/tmp/mycache"
}
```