bluehost / endurance-page-cache

Other
25 stars 12 forks source link

Cache needs to purge_all with other conditions #9

Open emgorman opened 7 years ago

emgorman commented 7 years ago

I found that our website was using endurance-page-cache as per a Bluehost install. But pages were created on 12/17 making the content on these pages very outdated. The content that changes are event listings and gravity forms.

We make two changes to our website regularly that need to trigger a purge:

  1. We edit a Gravity Form and change a field then save the form.
  2. We add events using Tribe Events Plugin.

Is there a way to purge all pages/data anytime one of these actions are complete?

We do not update posts, pages, etc. And the editors do not have access to plugins to click the PURGE ALL button on your plugin.

Thank you!

lukecav commented 7 years ago

@emgorman

If you resave the page where the Gravity Form is used on, then the cache for that page will be purged, otherwise there is no trigger other than form being updated in wp-admin.

Where on the site are the events being featured?

emgorman commented 7 years ago

Thank you - Is there code I can add to auto purge all files/pages after a certain amount of time, such as every 24 hours? That would solve all of my issues.

Or is there a way to exclude urls from being cached?

Also, the events page is here: https://goo.gl/EIy0fl This url is not really a page I can edit in wp-admin, it is auto generated by the Tribe Events plugin. There is no way to Events get added as individual pages, and this calendar page just pulls in the data automatically.