I have a block in my module and when the block is loaded first time it will calling the controller and I am getting the url parameters,but when the block open with same url parameters then the controller is not calling.

this link will open a block and the controller is calling so that I am getting the url parameters,like code and clickId

but next time when I hit the same url with same parameters then the controller is not calling and I am not getting the url parameters.

After clear the magento cache then it will calling.So what is the reason for not calling the controller second time with same parameter values?

  • did you use varnish cache? Oct 19, 2020 at 16:51
  • @BilalUsean I am a beginner,I don't know about varnish cache,so how to use it?is it solve my issue?
    – Subrata P
    Oct 19, 2020 at 17:23

1 Answer 1


This is a cache issue in localhost.

Kidly, disable Blocks HTML outputs cache

enter image description here

You can also disable this cache using CLI using following command

php bin/magento cache:disable block_html

If this helps then hit like and share.

Thank you,
Hiren Patel

  • not working,same issue
    – Subrata P
    Oct 20, 2020 at 6:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.