Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PI-706: Magento will purge CloudFlare cache any time a full cache pur… #16

Merged
merged 1 commit into from
Aug 9, 2016

Conversation

jwineman
Copy link
Contributor

@jwineman jwineman commented Aug 8, 2016

…ge Magento event is dispatched.

@@ -1,5 +1,44 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="clean_cache_by_tags">
<observer name="invalidate_cloudflare_observer" instance="CloudFlare\Plugin\Observer\InvalidateCloudFlareObserver"/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we have both purge cache observers we can mimic all the events they hook into for varnish.
https://github.com/magento/magento2/blob/6ea7d2d85cded3fa0fbcf4e7aa0dcd4edbf568a6/app/code/Magento/CacheInvalidate/etc/events.xml

@jwineman jwineman merged commit 2a1498a into master Aug 9, 2016
@jwineman jwineman deleted the jwineman/PI-706-full-page-cache-purge-observer branch August 10, 2016 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant