我正在为 Magento 1.x 使用 Amasty 全页缓存
在检查命中页面缓存时触发的事件时,我发现 resource_get_tablename 和 http_response_send_before 是在缓存命中期间触发的仅有的 2 个事件。
然而,当缓存被命中时,将观察者附加到 http_response_send_before 不会做任何事情。
我查看了 Mage_Core_Model_App 的 dispatchEvent 函数,发现缓存命中时 $this->_events 是空的,那么有什么方法可以将观察者附加到任何类型的事件上?我正在添加一些跟踪并且不想修改 index.php