Jeffrey L. Roberts
Jeffrey L. Roberts

Reputation: 2984

Magento - How to tell if page hit came from cache or not

Magento's full page cache is giving us a serious headache, I am looking for a way to tell if a page is being pulled from the FPC or if the page is being generated from scratch.

Any ideas are greatly appreciated!

Jeff

Upvotes: 1

Views: 214

Answers (1)

Pablo
Pablo

Reputation: 547

Maybe looking at this files helps Enterprise_PageCache_Model_Observer method processPreDispatch

The processor should be Enterprise_PageCache_Model_Processor

This event Mage::dispatchEvent('pagecache_processor_metadata_before_save', array('processor' => $this)); on the processor class might help you.

Upvotes: 2

Related Questions