# http Frontend Cache - wo hängt der sich zwischen?

**URL:** <https://forum.shopware.com/t/http-frontend-cache-wo-hangt-der-sich-zwischen/15120>\
**Category:** Shopware 3.5\
**Tags:** programming\
**Created:** [20. August 2013 um 21:24 UTC](https://forum.shopware.com/t/http-frontend-cache-wo-hangt-der-sich-zwischen/15120 "2013-08-20T21:24:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmmichael](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@mmmichael](https://forum.shopware.com/u/mmmichael)\
**Post date:** [20. August 2013 um 21:24 UTC](https://forum.shopware.com/t/http-frontend-cache-wo-hangt-der-sich-zwischen/15120/1 "2013-08-20T21:24:41Z")

</div>

Hallo, wo hängt sich eigentlich der neue Frontend HTTP Cache im MVC Ansatz zwischen? Das Plugin subscibted sich ja auf diverse Modells. Wird hier einfach irgend ein File-Cache unter /cache/html/en genutzt? ` $this-\>subscribeEvent( 'Enlight\_Controller\_Action\_PreDispatch', 'onPreDispatch' ); $this-\>subscribeEvent('Shopware\Models\Article\Article::postPersist', 'onPostPersist'); $this-\>subscribeEvent('Shopware\Models\Category\Category::postPersist', 'onPostPersist'); $this-\>subscribeEvent('Shopware\Models\Banner\Banner::postPersist', 'onPostPersist'); $this-\>subscribeEvent('Shopware\Models\Article\Article::postUpdate', 'onPostPersist'); $this-\>subscribeEvent('Shopware\Models\Category\Category::postUpdate', 'onPostPersist'); $this-\>subscribeEvent('Shopware\Models\Banner\Banner::postUpdate', 'onPostPersist'); ` Gruß, Michael

---

<div class="post-metadata">

**Author:** ![Benjamin\_Cremer](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@Benjamin\_Cremer](https://forum.shopware.com/u/Benjamin_Cremer)\
**Post date:** [21. August 2013 um 09:14 UTC](https://forum.shopware.com/t/http-frontend-cache-wo-hangt-der-sich-zwischen/15120/2 "2013-08-21T09:14:46Z")

</div>

Hallo Michael, der HTTP Cache sitzt unabhängig vom MVC-Stack vor dem Shopware-Kernel (/engine/Shopware/Bootstrap.php Zeile: 69). Im PreDispatch wird bei ungecachten Requests vor dem Controller-Aufruf bestimmt ob die Response vom HTTP-Cache gecached werden darf. Die Events auf den Models werden für die Cache-Invalidierung verwendet. Viele Grüße, Benjamin Cremer :shopware:
