---
title: "Set duration for caching"
slug: "set-duration-for-caching"
abstract: "How to set the duration of caching, which Sitecore uses to reduce the number of requests required to resolve Tenant Service Endpoints."
---
# Set duration for caching

Sitecore uses caching to reduce the number of requests to resolve Tenant Service Endpoints.

To set the duration of the caching:

1. On the xConnect server, open the `\App_Config\AppSettings.config` file.
2. Set the `cacheExpiration` parameter to the number of seconds you want for the duration of the cache. For example:

    ```xml
    <!-- cache expiration in seconds-->
    <add key="cacheExpiration" value="300" />
    ```

    > [!note]
    > By default, Sitecore caches values for 300 seconds.