# Cache automatisch löschen nach Plugin installation

**URL:** <https://forum.shopware.com/t/cache-automatisch-loschen-nach-plugin-installation/31161>\
**Category:** Programmierung\
**Created:** [6. Oktober 2015 um 23:05 UTC](https://forum.shopware.com/t/cache-automatisch-loschen-nach-plugin-installation/31161 "2015-10-06T23:05:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![benda](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@benda](https://forum.shopware.com/u/benda)\
**Post date:** [6. Oktober 2015 um 23:05 UTC](https://forum.shopware.com/t/cache-automatisch-loschen-nach-plugin-installation/31161/1 "2015-10-06T23:05:54Z")

</div>

Hallo, ist es möglich das der Cache gelöscht und das Theme neu aufgebaut wird, nachdem der Benutzer ein Plugin installiert hat? Vielen dank für eure Hilfe.

---

<div class="post-metadata">

**Author:** ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)\
**Post date:** [6. Oktober 2015 um 23:27 UTC](https://forum.shopware.com/t/cache-automatisch-loschen-nach-plugin-installation/31161/2 "2015-10-06T23:27:15Z")

</div>

Hallo benda, na klar ist das möglich. [Grundlagen der Plugin Entwicklung \> Vollständige Bootstrap](http://community.shopware.com/Shopware-4-Grundlagen-der-Plugin-Entwicklung%5C_detail%5C_971.html#Vollst.E4ndige%5C_Bootstrap) Dort findest du in der Install Methode genau das was du suchst ( gilt 1:1 für SW5 ): ` public function install() { /\* ... \*/ return array( 'success' =\> true, 'invalidateCache' =\> array( 'frontend' ) ); } ` Damit wird nach der Installation der Frontend Cache geleert und das Fenster zum Theme Kompilieren wird angezeigt. Viele Grüße
