> For the complete documentation index, see [llms.txt](https://docs.nosto.com/shopware-6/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nosto.com/shopware-6/getting-started/guides/caching.md).

# Caching

**Default Shopware Caching**\
Only the **first** load of a Category (PLP) or Search (SERP) page was served by Nosto; subsequent visits were served from Shopware’s core cache, potentially showing stale data. This could affect personalisation and analytics on Nosto,

### 1 Where to find it

```
Shopware Admin → Extensions → My Extensions → Nosto → Configuration
```

***

<figure><img src="/files/GAx8doFApsLrlXCirTcA" alt=""><figcaption></figcaption></figure>

### 2 Behaviour Overview

| Flag         | Cache interval                   | Result                                                                                                                                                                                        |
| ------------ | -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Disabled** | n/a                              | Caching is disabled for all PLP & SERP requests. Every page load fetches fresh results from Nosto.                                                                                            |
| **Enabled**  | *N* minutes (set below the flag) | Caching is enabled for PLP/SERP response in its HTTP cache. The first request after *N* minutes triggers a fresh call to Nosto; all other requests within the interval are served from cache. |

***

### 3 Configuration Steps

1. **Open Nosto plugin settings** (see path above).
2. Toggle **Enable Cache**:
   * Off – real-time results (no cache).
   * On – enable caching.
3. If enabled, set **Cache interval (minutes)** to your preferred TTL, e.g. **15**.\
   \&#xNAN;*Minimum*: 1 min · *Typical*: 10–30 min · *Maximum*: any value
4. **Save** the configuration. Changes take effect immediately—no Shopware cache clear is required.

***

#### How it works under the hood

* **Flag off** → The plugin tells Shopware to add the route `/product-listing/*` and `/search/*` to the cache exclusion list.
* **Flag on** → The plugin attaches the configured TTL so Shopware’s HTTP cache invalidates pages automatically.

***

### 4 FAQ

**Does this affect CMS/PDP pages?**\
No. Only Category and Search result pages rendered via Nosto are affected.

**What would happen if I enable caching?**\
Category and Search result pages would be caching for a selected timeframe. This would affect Search and CM analytics on Nosto as well as show stale data when it comes to personalisation, and rules depending on affinity/segments <br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nosto.com/shopware-6/getting-started/guides/caching.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
