Hello guys and girls.
My question in a nut shell is ‘How can I set the order of the events dispatched with dispatchEvent(’some_event_here’)?’
Now the details of my problem.
I’m using Magento EE 18.104.22.168.
I have full page cache enabled (I said it before but I will say it again -it is worth it’s weight in gold).
My problem is that the full page cache module dispatches the event ‘controller_action_predispatch’
In a custom module I’m hooking on the same event ‘controller_action_predispatch’ and I set some cookies, check some urls and other stuff (the content of my module is not actually important).
The main idea is that I want this to be executed before the method from the full page cache module.
Any ideas and pointers are valuable.