How to monitor cache flushes
Page Cache Warmer allows you to track changes to products and site pages and update the cache for them.
The module tracks page changes via the updated_at
field, and if a page has been modified, a request will be sent to Magento to clear the cache, after which the page will be re-warmed.
All flushes performed by Magento will be tracked and recorded in the log on the Cache flushes page if the Log cache flush backtrace option is enabled.
If the cache was cleared outside of Magento, such as due to a Varnish reboot, TTL expiration, or the execution of your product import script, our log will not be able to track the event. In this case, refer to other Magento logs to identify the cause of the cache clearing.
How to check why the cache was flushed
- Navigate to Advanced logging and make sure that Log warmer requests is enabled. If you need to save the log to a file, also enable the Log cache flush backtrace into file option.
- Open Cache flushes page, find and analyze the data in the table.
How to forbid cache flushing
To prevent the extension from tracking changes and automatically updating the cache, enable the Forbid cache flushing option in the Caching and Behavior settings.
If you have enabled Forbid cache flushing, changes on the Category and Product pages won't take effect unless you manually purge the cache from System -> Cache Management, or the cache will expire (depending on the TTL set in the Magento settings).