Enable Magento Varien_Profiler in admin area

半腔热情 提交于 2020-01-01 05:35:10

问题


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:


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.



来源:https://stackoverflow.com/questions/11186700/enable-magento-varien-profiler-in-admin-area

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!