# Performance

## Enabling HTTP Cache for Logged-in Users

By default, Shopware disables the HTTP cache for authenticated users to ensure that personalized content remains private. While enabling this can significantly improve performance, doing so without proper safeguards can lead to data security risks.

### The Challenge: Personalized Data & Security

Shopware generates a "cache hash" to determine which stored content to serve. Typically, this hash is based on broad parameters like Rule IDs, Currency, and Tax State.

The Risk: Standard Shopware cache hashes do not include the Customer ID.

In a B2B environment, if two customers share the same rules and currency, the system might accidentally serve Customer A a cached page containing Customer B's specific prices or private account details. This poses a significant data protection (GDPR) risk.

### Our Solution: Secure B2B Caching

To allow you to benefit from high-speed performance without compromising security, the B2Bsellers Suite includes native logic to handle per-customer caching safely.

This feature is enabled by default within the suite. Our system automatically extends the standard Shopware HTTP cache hash to include the Customer ID whenever a user is logged in.

* Unique Cache Versions: Every logged-in customer receives their own unique cache entries.
* Data Privacy: This prevents the accidental leakage of personalized B2B data between different user accounts.
* Out-of-the-Box Security: You can utilize the [Shopware HTTP Cache](https://www.google.com/search?q=https://docs.shopware.com/en/shopware-6-en/first-steps/performance-tweaks%23http-cache) for logged-in users immediately, as our suite manages the secure hash generation in the background.

### Configuration & Settings

While the feature is active upon installation, you can find the toggle in the Shopware Admin should you ever need to adjust it:

1. Navigate to B2B Settings > Core Settings.
2. Locate the setting: "Enable customer specific caching".
3. Ensure this is set to Enabled to maintain secure, high-performance caching.


---

# Agent Instructions: 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:

```
GET https://docs.b2b-sellers.com/b2b-platform/user-guide/performance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
