# More Ghost Trigger on Zapier

**URL:** <https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537>\
**Category:** Developer help\
**Created:** [March 8, 2020, 6:52pm UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537 "2020-03-08T18:52:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibhi](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vibhi/32/6733_2.png) [@vibhi](https://forum.ghost.org/u/vibhi)\
**Post date:** [March 8, 2020, 6:52pm UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537/1 "2020-03-08T18:52:49Z")

</div>

I am using cloud flare page rules to cache whole blog in there server which is pretty neat but it has some issues as well. like when you post to see update on front end you have to purge the cache manually.

There is a way to do that automatically but its limited to Post and page published. it would be awesome if there are more triggers related to post update and deletion on Zapier

if someone can help in this area it would be really awesome

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [March 9, 2020, 11:56am UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537/2 "2020-03-09T11:56:13Z")

</div>

I guess you could use a custom integration and listen to the ‘site changed’ event a bust the cache then?

> **[Official Ghost + Custom Integrations Integration](https://ghost.org/integrations/custom-integrations/)**
>
> How to create custom API and webhook based integrations for the Ghost publishing platform, full developer documentation and guide.

Are you planning on receiving a high amount of traffic?

---

<div class="post-metadata">

**Author:** ![vibhi](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vibhi/32/6733_2.png) [@vibhi](https://forum.ghost.org/u/vibhi)\
**Post date:** [March 10, 2020, 12:38pm UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537/3 "2020-03-10T12:38:27Z")

</div>

How i am going to bust the cache of cloudflare?

[https://api.cloudflare.com/client/v4/zones/](https://api.cloudflare.com/client/v4/zones/)/purge\_cache

is this will be enough? on zapier i provide my email and api too

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [March 10, 2020, 12:50pm UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537/4 "2020-03-10T12:50:39Z")

</div>

I’m not familiar with the Cloudflare API but it appears if you add that URL, with your Zone ID, to a Ghost integration and set it to the ‘site changed’ event you can purge the cache.

```nohighlight
https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/purge_cache

```

---

<div class="post-metadata">

**Author:** ![vibhi](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vibhi/32/6733_2.png) [@vibhi](https://forum.ghost.org/u/vibhi)\
**Post date:** [March 10, 2020, 12:51pm UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537/5 "2020-03-10T12:51:42Z")

</div>

Ok i will test it. lets see what happens?

---

<div class="post-metadata">

**Author:** ![vibhi](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vibhi/32/6733_2.png) [@vibhi](https://forum.ghost.org/u/vibhi)\
**Post date:** [March 10, 2020, 12:58pm UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537/6 "2020-03-10T12:58:52Z")

</div>

It does not work without Email and API.

looking at there api docs it require email and api key.

[https://api.cloudflare.com/#zone-purge-all-files](https://api.cloudflare.com/#zone-purge-all-files)

---

<div class="post-metadata">

**Author:** ![vibhi](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vibhi/32/6733_2.png) [@vibhi](https://forum.ghost.org/u/vibhi)\
**Post date:** [March 10, 2020, 8:21pm UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537/7 "2020-03-10T20:21:57Z")

</div>

There is work around for this. one can use cloud-flare Worker to Purge cache via a URL.

[https://community.cloudflare.com/t/worker-recipe-cache-purge-proxy/29978](https://community.cloudflare.com/t/worker-recipe-cache-purge-proxy/29978)

Here is Pretty script to purge cache automatically.

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [March 11, 2020, 8:48am UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537/8 "2020-03-11T08:48:59Z")

</div>

Hey nice find! I’ve yet to try out Cloudflare Workers. Thanks for sharing 🙂

---

<div class="post-metadata">

**Author:** ![vibhi](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vibhi/32/6733_2.png) [@vibhi](https://forum.ghost.org/u/vibhi)\
**Post date:** [March 11, 2020, 10:43am UTC](https://forum.ghost.org/t/more-ghost-trigger-on-zapier/12537/9 "2020-03-11T10:43:48Z")

</div>

yeah go ahead it awesome and free for 100k request per day. that is more than enough 😀

my blog is super fast now although i still want to implement nginx cache.
