One minute
Using observers in Magento 1.13 can lead to slow loading issues
👴 Careful You’re reading an old article ! Some links might be broken and content may be outdated
For one of the Magento projects I worked on, I had to implement a new action in the dropdown list of actions in the back-end.
I tried the Observer option described in this tutorial: Adding new mass action to admin grid in Magento
However, it slowed down the application because the event I was observing core_block_abstract_prepare_layout_before was triggered too many times. The Sales admin page could take around 5 to 10 seconds to load. I finally opted for the Block override option, much more elegant.
Lesson learned from this experience ? Be careful with the events you’re overriding with Magento and profile your dev environment. The plugin AOE_Profiler helped me a lot noticing this issue.