patronage / bubs-timber

Gulp + Timber + WP
Other
5 stars 1 forks source link

WP Engine Cache Purging #172

Open kylehotchkiss opened 1 year ago

kylehotchkiss commented 1 year ago

WP Engine has an API that can be used to clear the cache: https://wpengineapi.com/reference https://wpengine.com/support/enabling-wp-engine-api/

Let's evaluate it using the same purge hooks we have setup in bibs-next. https://github.com/patronage/bubs-next/blob/3b72e4b30c1028b4f1f1b87e34ff9675af57650a/wordpress/wp-content/themes/headless/setup/helpers/webhooks.php#L7

Focus areas:

ccorda commented 8 months ago

We should also look into this for Cloudflare.

Their default plugin doesn't seem to support purging cache when menus are updated, and not on code deploys either:

Also for Kinsta (we have a few sites there): https://github.com/ItinerisLtd/trellis-purge-kinsta-cache-during-deploy