Have created a module and it works fine on staging and locally but not working on live. The module is installed correctly and enabled. The live config.php and the staging config.php are the same. I used the live db on staging and it is working fine which means is not a db problem.
Also cleared the cache. In my custom module I have a before plugin for
Magento\Checkout\Controller\Onepage\Success execute() and overwritten
Looks like the code is never executed. Does anyone know what might be the problem?