# Plugin Custom Products: CLI-Kommando swag:customproducts:configurations:cleanup?

**URL:** <https://forum.shopware.com/t/plugin-custom-products-cli-kommando-swagconfigurations-cleanup/94245>\
**Category:** Plugins\
**Created:** [5. Mai 2022 um 09:37 UTC](https://forum.shopware.com/t/plugin-custom-products-cli-kommando-swagconfigurations-cleanup/94245 "2022-05-05T09:37:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunflower](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sunflower/32/8100_2.png) [@sunflower](https://forum.shopware.com/u/sunflower)\
**Post date:** [5. Mai 2022 um 09:37 UTC](https://forum.shopware.com/t/plugin-custom-products-cli-kommando-swagconfigurations-cleanup/94245/1 "2022-05-05T09:37:04Z")

</div>

Hallo zusammen,

habe gerade in einem V5-Shop das CLI-Kommando swag:customproducts:configurations:cleanup entdeckt.  
Die Beschreibung lautet: „Deletes expired Custom Products configurations and files“.

Was ist denn in Cutom Products „expired“? Gelöschte Definitionen?

In diesem Shop wird Custom Products heftig genutzt(~200 Vorlagen). Die Tabelle s\_plugin\_custom\_products\_configuration\_hash ist mit ~70MB die zweitgrößte in der Datenbank.

Würde dieses Script hier „aufräumen“?

Grüße  
sunflower

---

<div class="post-metadata">

**Author:** ![AndreHerking](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/andreherking/32/7839_2.png) [@AndreHerking](https://forum.shopware.com/u/AndreHerking)\
**Post date:** [5. Mai 2022 um 10:53 UTC](https://forum.shopware.com/t/plugin-custom-products-cli-kommando-swagconfigurations-cleanup/94245/2 "2022-05-05T10:53:04Z")

</div>

Es werden die Konfigurationen der Kunden auch ohne Bestellung für einen bestimmten Zeitraum gespeichert, damit der Kunde diese bspw. „weiterschicken“ kann. Dafür wird unmittelbar nach Beginn der Konfiguration im Frontend ein „Hash“ an der URL angehangen welche die Konfiguration in der Datenbank zuordnet. Bestellt der Kunde über diesen Hash das Produkt nicht innerhalb einer bestimmten Zeit (ich meine 30 Tage), dann wird über den Cronjob die Konfiguration in der besagten Tabelle löschen.

Sobald aber eine Bestellung durchgeführt wird, bleibt der Eintrag in der s\_plugin\_custom\_products\_configuration\_hash erhalten, damit man über das Backend die Informationen einsehen kann.

---

<div class="post-metadata">

**Author:** ![sunflower](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sunflower/32/8100_2.png) [@sunflower](https://forum.shopware.com/u/sunflower)\
**Post date:** [5. Mai 2022 um 11:23 UTC](https://forum.shopware.com/t/plugin-custom-products-cli-kommando-swagconfigurations-cleanup/94245/3 "2022-05-05T11:23:42Z")

</div>

Hallo Andre,

vielen Dank für die ausführliche Beschreibung.

In den Cron-Jobs gibt es eine Task „CustomProducts Hash GarbageCollector“.  
Die ist bei uns aktiv. Da wird vermutlich dieses Script aufgerufen.  
Also bringt da das manuelle Aufrufen in diesem Fall nicht wirklich etwas. 😉

Grüße  
sunflower
