# Twig-Funktion wird nicht erkannt

**URL:** <https://forum.shopware.com/t/twig-funktion-wird-nicht-erkannt/106552>\
**Category:** Shopware 6 (German)\
**Tags:** programming\
**Created:** [21. Februar 2025 um 09:16 UTC](https://forum.shopware.com/t/twig-funktion-wird-nicht-erkannt/106552 "2025-02-21T09:16:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinEckardt](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@MartinEckardt](https://forum.shopware.com/u/MartinEckardt)\
**Post date:** [21. Februar 2025 um 09:16 UTC](https://forum.shopware.com/t/twig-funktion-wird-nicht-erkannt/106552/1 "2025-02-21T09:16:00Z")

</div>

Hallo,

ich habe ein Problem, bei dem ich gerade nicht weiterkomme, ich habe ein Plugin implementiert welches mehrere Twig-Funktionen für einen Produktdatenfeed bereitstellt. Jetzt habe ich noch eine weitere Funktion hinzugefügt, aber diese wird nicht erkannt. In meinem lokalen Docker-Setup funktioniert das ganze ohne Probleme, aber im Staging-System kennt er die neue Methode nicht. Deshalb dachte ich zuerst, dass es am Caching liegt, aber ein cache:clear bringt keine Besserung. Das Plugin wurde auch schon per plugin:install --cacheClear --reinstall && plugin:activate re-initialisiert und danach wieder ein cache:clear. Der aktuell einzige größere Unterschied zwischen Lokal und Staging ist, dass auf Staging Redis aktiviert ist, was ich aber zum testen auch schon abgestellt hatte.

Vielleicht hatte ja von euch schon Mal jemand ein ähnliches Problem und kann mir weiterhelfen.

Viele Grüße  
Martin

---

<div class="post-metadata">

**Author:** ![MartinEckardt](https://avatars.discourse-cdn.com/v4/letter/m/5daacb/32.png) [@MartinEckardt](https://forum.shopware.com/u/MartinEckardt)\
**Post date:** [1. April 2025 um 09:04 UTC](https://forum.shopware.com/t/twig-funktion-wird-nicht-erkannt/106552/2 "2025-04-01T09:04:26Z")

</div>

Also die Ursache für diese Problem war der aktivierte op\_cache.

---

<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:** [1. Mai 2025 um 09:05 UTC](https://forum.shopware.com/t/twig-funktion-wird-nicht-erkannt/106552/3 "2025-05-01T09:05:08Z")

</div>

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