Why Shopware 5 Frontend Subscriber is not invoked on homepage?

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.