---
schema_version: "1"
id: 7dde1b61794e7a5a07b95c74e05ab5122f5fe54692913ebb93e989898714beba
title: Configure Data Cache
collection: tableau
version: next
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/next/en-gb/server-linux/config_cache.md
canonical_url: https://help.tableau.com/v0.0/server-linux/en-gb/config_cache.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 2c419da9475e603ffe716bdcd60b48c711a452584e4bc75b80a2c7f3c554361c
description: Configure the Tableau Server data cache to balance data freshness against performance.
---
[Skip to main content](#main-content)

# Configure Data Cache

Views published to Tableau Server are interactive and sometimes have a live connection to a database. As users interact with the views in a web browser, the data that is queried gets stored in a cache. Subsequent visits will pull the data from this cache if it is available. By default, Tableau Server will cache and reuse data for as long as possible. You can change this behaviour by configuring the caching option using the `[tsm data-access caching set](https://help.tableau.com/v0.0/server-linux/en-gb/cli_data-access.htm#caching-set)` command.

1. Run this command:
    
    `tsm data-access caching set -r <value>`
    
    Where <value> is one of these options:
    
    - **low or empty string (" )**. This is the default value and indicates that Tableau Server should configure cache and always use cached data when available.
    - <value>. "<value>" specifies the maximum number of minutes data should be cached.
    - **always** or **0** (zero). These values indicates that Tableau Server should always get the latest data and that the cache should be refreshed each time a page is reloaded.
2. Apply changes with the `tsm pending-changes apply` command. This will restart Tableau Server.