Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在管理区域启用 Magento Profiler?
我已经设置了管理选项,Varien_Profiler::enable();之前添加Mage::run($mageRunCode, $mageRunType);并清除了缓存,但分析器结果只显示在前端?
Varien_Profiler::enable();
Mage::run($mageRunCode, $mageRunType);
我还缺少其他东西吗?
检查系统 > 配置 > 开发人员的默认配置范围内是否也启用了探查器,并且开发人员 IP 限制为空或配置正确。
编辑:基于这是公认的答案,系统配置中的“默认范围”将针对存储范围 ID 0 存储值,这是管理区域使用的存储范围,这是毫无价值的。