# Caching von bestimmter Variable verhindern

**URL:** https://forum.shopware.com/t/caching-von-bestimmter-variable-verhindern/18033
**Category:** Shopware 3.5
**Tags:** themes--design
**Created:** [28. Januar 2014 um 17:07 UTC](https://forum.shopware.com/t/caching-von-bestimmter-variable-verhindern/18033 "2014-01-28T17:07:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![versandmanufaktur.de](https://avatars.discourse-cdn.com/v4/letter/v/57b2e6/32.png) [@versandmanufaktur.de](https://forum.shopware.com/u/versandmanufaktur.de)
#### Post date: [28. Januar 2014 um 17:07 UTC](https://forum.shopware.com/t/caching-von-bestimmter-variable-verhindern/18033/1 "2014-01-28T17:07:12Z")

</div>

Sehr geehrte Shopware-Community, in unserem Shop kommt es leider zu einem unerklärlichen HTTP-Caching-Fehler, den wir leider mit Hilfe des Moduls bzw. der Smarty-Variablen nicht gelöst bekommen. Wir haben mit Hilfe einer Variable die Account-Hilfe-Leiste von dem Warenkorb getrennt (zu sehen unter [www.gatmeo.de](http://www.gatmeo.de)), aktiviert man das Caching so scheint es als würde die blShowBasket-Variable gecacht und man erhält an beiden stellen die selbe Ausgabe (doppelter Warenkorb oben und unten). Unser aktueller Stand von Einstellungen und Code sieht wie folgt aus: index/index.tpl: ` {nocache} {assign var="blShowBasket" value=false scope="global"} {action module=widgets controller=checkout action=info} {/nocache} ` … ` {block name='frontend\_index\_navigation'} {$smarty.block.parent} {nocache} {assign var="blShowBasket" value=true scope="global"} {action module=widgets controller=checkout action=info} {/nocache} {/block} ` index/checkout\_actions.tpl: ` {nocache} {\* Wegen ShopNavigations-Fehler hier leider nicht moeglich... Div-Shopnavi faengt vor Block an \*} {\* extends file='parent:frontend/index/checkout\_actions.tpl' \*} {\* block name="frontend\_index\_checkout\_actions\_my\_options" \*} {if $blShowBasket} {block name="frontend\_index\_checkout\_actions\_cart"} {s namespace='frontend/index/checkout\_actions' name='IndexLinkCart'}{/s} {$sBasketQuantity} Artikel {$sBasketAmount|currency} {\* {s name='IndexActionShowPositions' namespace='frontend/index/checkout\_actions'}{/s} \*} {\* {if $sBasketQuantity \> 0} {$sBasketQuantity} {/if} \*} {/block} {block name="frontend\_index\_checkout\_actions\_inner"}{/block} {else} {block name="frontend\_index\_checkout\_actions\_account"} {s namespace='frontend/index/checkout\_actions' name='IndexLinkAccount'}{/s} {/block} {block name="frontend\_index\_checkout\_actions\_notepad"} 0}style="padding-right: 25px;"{/if} class="note"\> {s namespace='frontend/index/checkout\_actions' name='IndexLinkNotepad'}{/s} {if $sNotesQuantity \> 0}{$sNotesQuantity}{/if} {/block} {block name="frontend\_index\_checkout\_actions\_service\_menu"} {s name='IndexLinkService'}Service/Hilfe{/s} {action module=widgets controller=index action=menu group=gLeft} {/block} {\* Language and Currency bar \*} {\* Momentan nicht fuer Gatmeo vorgesehen \*} {block name='frontend\_index\_actions'} {\*action module=widgets controller=index action=shopMenu\*} {/block} {/if} {\* /block \*} {/nocache} ` Zusätzlicher Eintrag im Caching-Modul für nicht gecachte Controller: widgets/checkout info Leider möchten diese Einstellungen aber nicht greifen, was nach Shopware-Dokumentation und Smarty-Referenz verwunderlich ist. Hat hier jemand Erfahrung oder einen Rat? Gruß eure [versandmanufaktur.de](http://versandmanufaktur.de)

---

<div class="post-metadata">

### Author: ![bc1](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@bc1](https://forum.shopware.com/u/bc1)
#### Post date: [10. Mai 2014 um 17:23 UTC](https://forum.shopware.com/t/caching-von-bestimmter-variable-verhindern/18033/2 "2014-05-10T17:23:55Z")

</div>

Ich habe genau das gleiche Problem, bei uns „springt“ die Information, welcher Betrag aktuell im Warenkorb ist, bei aktiviertem HTTP-Cache von Seite zu Seite auf 0,00 und dann wieder auf den Wert, der tatsächlich geladen wurde. Auch wir haben widgets/checkout Tag: info als NoCache Tag gesetzt, ebenfalls ohne Erfolg. Auch das Setzen von {nocache} im Template hilft nicht. Wir würden uns freuen wenn ein Shopware Experte hier weiterhelfen kann.

---

<div class="post-metadata">

### Author: ![Matthias321](https://avatars.discourse-cdn.com/v4/letter/m/2acd7d/32.png) [@Matthias321](https://forum.shopware.com/u/Matthias321)
#### Post date: [21. Juli 2017 um 06:24 UTC](https://forum.shopware.com/t/caching-von-bestimmter-variable-verhindern/18033/3 "2017-07-21T06:24:31Z")

</div>

Schade, dass hier bisher keine Antwort von Shopware kam.
