- 🇺🇸United States adrian83
For the last year I had hoped to create an issue detailing my steps to get this working. Since that didn't happen, and I am forgetting the details, I will put some info here that could help a person get started.
First, I just re-found David's blog post about this. This could be included in the module's description and/or README. https://davidwbarratt.com/node/49
- Besides installing this module on your Drupal site, you will need to deploy this Cloudflare worker code in Cloudflare. https://github.com/davidbarratt/drupal-edge. Fork it, clone to local, run
npm install
,npm run build
, andnpm run deploy
. - Go into Cloudflare and bind a route to the worker. https://developers.cloudflare.com/workers/configuration/routing/routes. To match all routes,
*DOMAIN.com/*
- (I may have needed to set up Wrangler on my local?
- (I believe I installed the Purge and Cloudflare modules and enabled the Purge Core tags queuer and Cloudflare Worker Purge submodules.)
- Under the Purge UI in Drupal, add your Cloudflare worker as a layer of cache invalidation, for the URL: https://DOMAIN.com/.cloudflare/purge
I needed to debug issues. Drupal core contact forms broke page caching. A viewsreference field 🐛 Viewsreference embeds Views without cache, breaking Dynamic page cache Fixed was breaking page caching. I still had issues where I needed to either clear Drupal or Cloudflare cache when updating content, which I did not troubleshoot because it is not a heavily-edited site.
Hopefully these notes can help someone.
- Besides installing this module on your Drupal site, you will need to deploy this Cloudflare worker code in Cloudflare. https://github.com/davidbarratt/drupal-edge. Fork it, clone to local, run
- 🇺🇸United States davidwbarratt
Yeah sorry about that. Something on Azure is borken so I'm migrating back to my Pi which is cheaper anyways.
- First commit to issue fork.
- Status changed to Needs review
7 months ago 1:28pm 2 May 2024 - 🇮🇳India sarwan_verma
Hi@mandclu,
fix the issue and created MR. please review it once. - Status changed to Needs work
7 months ago 2:40am 8 May 2024 - 🇵🇭Philippines clarkssquared
Hi
I checked the MR !3 and can we make the README.md file to follow the Drupal README.md template →
-
davidwbarratt →
committed e66e4aaa on 2.x authored by
sarwan_verma →
Issue #3216537 by sarwan_verma, davidwbarratt, Adrian83, clarkssquared:...
-
davidwbarratt →
committed e66e4aaa on 2.x authored by
sarwan_verma →
- Status changed to Fixed
2 months ago 3:11am 14 September 2024 Automatically closed - issue fixed for 2 weeks with no activity.