# Theme-Kompilieren triggern durch Plugin-Installation

**URL:** <https://forum.shopware.com/t/theme-kompilieren-triggern-durch-plugin-installation/52464>\
**Category:** Programmierung\
**Created:** [19. April 2018 um 06:29 UTC](https://forum.shopware.com/t/theme-kompilieren-triggern-durch-plugin-installation/52464 "2018-04-19T06:29:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FloC3](https://avatars.discourse-cdn.com/v4/letter/f/838e76/32.png) [@FloC3](https://forum.shopware.com/u/FloC3)\
**Post date:** [19. April 2018 um 06:29 UTC](https://forum.shopware.com/t/theme-kompilieren-triggern-durch-plugin-installation/52464/1 "2018-04-19T06:29:02Z")

</div>

Hallo, ich habe ein Plugin geschrieben das beim Installieren / Updaten das Theme neu kompilieren müsste.

ich habe es damit versucht

```
$cacheManager = $this->container->get("shopware.cache_manager");
$cacheManager->clearTemplateCache();
$cacheManager->clearHttpCache();
$cacheManager->clearThemeCache();

```

aber das funktioniert leider nicht…

&nbsp;

wie kann ich das Theme neukompilieren lassen?

---

<div class="post-metadata">

**Author:** ![Thomas](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/thomas/32/8167_2.png) [@Thomas](https://forum.shopware.com/u/Thomas)\
**Post date:** [19. April 2018 um 06:58 UTC](https://forum.shopware.com/t/theme-kompilieren-triggern-durch-plugin-installation/52464/2 "2018-04-19T06:58:04Z")

</div>

```
    public function install(InstallContext $context)
    {
        $context->scheduleClearCache(InstallContext::CACHE_LIST_FRONTEND);
    }

```

?
