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 的全页缓存让我们非常头疼,我正在寻找一种方法来判断一个页面是从 FPC 中提取出来的,还是该页面是从头开始生成的。
任何想法都非常感谢!
杰夫
也许查看此文件有助于Enterprise_PageCache_Model_Observer方法processPreDispatch
Enterprise_PageCache_Model_Observer
processPreDispatch
处理器应该是Enterprise_PageCache_Model_Processor
Enterprise_PageCache_Model_Processor
Mage::dispatchEvent('pagecache_processor_metadata_before_save', array('processor' => $this));处理器类上的此事件可能会对您有所帮助。
Mage::dispatchEvent('pagecache_processor_metadata_before_save', array('processor' => $this));