# Why Shopware 5 Frontend Subscriber is not invoked on homepage?

**URL:** https://forum.shopware.com/t/why-shopware-5-frontend-subscriber-is-not-invoked-on-homepage/70229
**Category:** International (English Only)
**Created:** [15. Oktober 2020 um 11:20 UTC](https://forum.shopware.com/t/why-shopware-5-frontend-subscriber-is-not-invoked-on-homepage/70229 "2020-10-15T11:20:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![davit\_sargsyan](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@davit\_sargsyan](https://forum.shopware.com/u/davit_sargsyan)
#### Post date: [15. Oktober 2020 um 11:20 UTC](https://forum.shopware.com/t/why-shopware-5-frontend-subscriber-is-not-invoked-on-homepage/70229/1 "2020-10-15T11:20:12Z")

</div>

I am trying to create a subscriber that will do something after all requests.

```
'Enlight_Controller_Action_PostDispatchSecure_Frontend' => 'onPostDispatch'

```

The “onPostDispatch” function is executed in all pages other than the homepage and categories, but as soon as I put a var\_dump there and clean the caches, it starts working. Had anyone experienced such an issue ever? I have tried with PreDispatch and PostDispatch without secure but got the same results. I also did a try catch to be sure that the code was not executed.
