# Cache für SEO URLs löschen?

**URL:** <https://forum.shopware.com/t/cache-fur-seo-urls-loschen/62910>\
**Category:** Administration\
**Created:** [11. November 2019 um 10:29 UTC](https://forum.shopware.com/t/cache-fur-seo-urls-loschen/62910 "2019-11-11T10:29:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danke](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Danke](https://forum.shopware.com/u/Danke)\
**Post date:** [11. November 2019 um 10:29 UTC](https://forum.shopware.com/t/cache-fur-seo-urls-loschen/62910/1 "2019-11-11T10:29:22Z")

</div>

Hallo alle zusammen,

nach der Umstellung der SEO URLs, wollte ich das die URLs auch Live geändert werden,&nbsp; nach der änderung, sind immer noch die Produkt-IDs vorhanden.

Miene Frage:

Wie lösche ich den Cache?

Habe das mit dem Befehl:

```
bin/console cache:clear

```

Versucht, jedoch bekomme ich folgende Fehlermeldung.

```
[hetzner]fandorin/var/www/shopware6[0]> bin/console cache:clear
PHP Fatal error: Uncaught Symfony\Component\Dotenv\Exception\PathException: Unable to read the "/var/www/shopware6/bin/../.env" environment file. in /var/www/shopware6/vendor/symfony/dotenv/Dotenv.php:484
Stack trace:
#0 /var/www/shopware6/vendor/symfony/dotenv/Dotenv.php(65): Symfony\Component\Dotenv\Dotenv->doLoad(false, Array)
#1 /var/www/shopware6/bin/console(24): Symfony\Component\Dotenv\Dotenv->load('/var/www/shopwa...')
#2 {main}
  thrown in /var/www/shopware6/vendor/symfony/dotenv/Dotenv.php on line 484

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![Danke](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Danke](https://forum.shopware.com/u/Danke)\
**Post date:** [13. November 2019 um 09:42 UTC](https://forum.shopware.com/t/cache-fur-seo-urls-loschen/62910/2 "2019-11-13T09:42:32Z")

</div>

Das Problem hat sich von alleine gelöscht, falsches Verzeichnis.&nbsp;

Sprich das Chache leeren hat geklappt, nur die SEO URLs zu ändern hat nicht geklappt.&nbsp;

Hat jemand dafür eine Lösung?&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [13. November 2019 um 10:14 UTC](https://forum.shopware.com/t/cache-fur-seo-urls-loschen/62910/3 "2019-11-13T10:14:33Z")

</div>

Hast du den Index denn mal neu aufgebaut?  
&nbsp;

also php bin/console dal:refresh:index?

---

<div class="post-metadata">

**Author:** ![Danke](https://avatars.discourse-cdn.com/v4/letter/d/0ea827/32.png) [@Danke](https://forum.shopware.com/u/Danke)\
**Post date:** [13. November 2019 um 10:42 UTC](https://forum.shopware.com/t/cache-fur-seo-urls-loschen/62910/4 "2019-11-13T10:42:36Z")

</div>

Hi Moritz,&nbsp;

danke die beiden Befehle:&nbsp;

```
bin/console cache:clear

php bin/console dal:refresh:index

```

Sind Gold wert.&nbsp;

Grüße&nbsp;

Danke
