# Cache-Ordner erstellt trotz SHOPWARE\_HTTP\_CACHE\_ENABLED="0"

**URL:** https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930
**Category:** Administration
**Created:** [22. November 2024 um 12:12 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930 "2024-11-22T12:12:43Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![cbm](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@cbm](https://forum.shopware.com/u/cbm)
#### Post date: [22. November 2024 um 12:12 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/1 "2024-11-22T12:12:43Z")

</div>

Hallo,

obwohl in der env.local der Wert "SHOPWARE\_HTTP\_CACHE\_ENABLED=„0“ gesetzt ist und im Shopware-Backend auch steht „HTTP-Cache:Aus“, ist unter /var/cache ein Ordner „prod\_h8dbb905…“ zu finden.

Wie kann das sein?  
Unter „Cache& Indizes“ lässt sich der Cache auch löschen und aufwärmen, obwohl er ja eigentlich nicht vorhanden sein darf…

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [22. November 2024 um 12:47 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/2 "2024-11-22T12:47:09Z")

</div>

Das eine ist ein Button, der immer da ist, unabhängig der Einstellung (Annahme, nicht im Quelltext nachgesehen).

Die Änderung der Variable von 0 auf 1 löscht den alten Cache nicht (Annhame, nicht im Quelltext nachgeshen), lediglich wird er dann nicht mehr genutzt.

Um meine Aussagen zu validieren, lösche den Cache-Ordner manuell und schaue, ob er neu angelegt wird.

---

<div class="post-metadata">

### Author: ![cbm](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@cbm](https://forum.shopware.com/u/cbm)
#### Post date: [22. November 2024 um 12:56 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/3 "2024-11-22T12:56:58Z")

</div>

Danke.  
Sehr verwirrend diese neue Shopware-env-Logik.  
Habe nochmal geprüft:  
In der .env steht „SHOPWARE\_HTTP\_CACHE\_ENABLED=1“  
in der .env.local (welche mal nach dem Update auf Shopware 6.5. erstellt wurde) steht „SHOPWARE\_HTTP\_CACHE\_ENABLED=0“

Der Cache-Ordner wird immer neu erzeugt.

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [22. November 2024 um 12:59 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/4 "2024-11-22T12:59:48Z")

</div>

Die .env.local überschreibt die .env. Daher sollte der Cache auf 0 stehen.

Wenn ich daran denke, teste ich das mal bei gelegenheit, ob das bei mir lokal auch so auftritt.

---

<div class="post-metadata">

### Author: ![cbm](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@cbm](https://forum.shopware.com/u/cbm)
#### Post date: [22. November 2024 um 13:02 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/5 "2024-11-22T13:02:23Z")

</div>

Ich habe jetzt in der env.local den Cache auch mal aktiviert.  
Ergebnis: unter var/cache wurden jetzt 2 „prod\_“-Ordner erstellt, die auch noch da sind bzw. wieder erstellt werden, wenn ich diese manuell vom Server lösche.

---

<div class="post-metadata">

### Author: ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)
#### Post date: [22. November 2024 um 13:05 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/6 "2024-11-22T13:05:04Z")

</div>

Verwechsle bitte nicht den HTTP fullpage cache mit dem Standard Shopware/symfony cache. Einen cache Ordner wird es IMMER geben.

Viele Grüße

---

<div class="post-metadata">

### Author: ![cbm](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@cbm](https://forum.shopware.com/u/cbm)
#### Post date: [22. November 2024 um 13:17 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/7 "2024-11-22T13:17:31Z")

</div>

Danke.  
d.h. das „SHOPWARE\_HTTP\_CACHE\_ENABLED=1“ bezieht sich auf den HTTP Full-Page-Cache?  
Die anderen Ordner unter „var/cache“ mit Bezeichnung „pools“ sind die symfony cache Ordner?

Die Pools-Ordner waren in Shopware 6.4. noch nicht vorhanden…

---

<div class="post-metadata">

### Author: ![EikeBrandtWarneke](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@EikeBrandtWarneke](https://forum.shopware.com/u/EikeBrandtWarneke)
#### Post date: [22. November 2024 um 13:35 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/8 "2024-11-22T13:35:07Z")

</div>

Naja, man beachte den Teil „…HTTP\_CACHE…“ im Namen der Variable. Weitere Infos findest du z.B. hier:

> **[Shopware 6 - configuration - caches & indexes](https://docs.shopware.com/en/shopware-6-en/configuration/caches-indexes)**
>
> In the Caches & Indexes module of Shopware 6 you can see some information about the cache configuration of the Shopware instance. You can also use the module to empty and warm up the caches and rebuild the indexes.

> **[Cache | Shopware Documentation](https://developer.shopware.com/docs/guides/hosting/performance/caches.html)**
>
> Documentation for Shopware developers

(über Google gefunden)

Viele Grüße

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [22. November 2024 um 15:44 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/9 "2024-11-22T15:44:33Z")

</div>

Wieder etwas gelernt 😃

---

<div class="post-metadata">

### Author: ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)
#### Post date: [22. Dezember 2024 um 15:45 UTC](https://forum.shopware.com/t/cache-ordner-erstellt-trotz-shopware-http-cache-enabled-0/105930/10 "2024-12-22T15:45:29Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
