Enable Magento Varien_Profiler in admin area

2019-03-28 13:05发布

How do I enable Magento Profiler in the admin area?

I've set the admin option, added Varien_Profiler::enable(); before Mage::run($mageRunCode, $mageRunType); and cleared cache, but the profiler results only show in frontend?

Am I missing something else?

1条回答
Lonely孤独者°
2楼-- · 2019-03-28 13:12

Check that profiler is enabled as well in the default configuration scope in System > Configuration > Developer and that Developer IP Restrictions are empty or configured correctly.

Edit: Based on this being the accepted answer, it's worth nothing that the "default scope" in the system configuration will store values against the store scope ID of 0, which is the store scope which the admin areas uses.

查看更多
登录 后发表回答