Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Unable to programmatically clear cache of posts that are a custom content type

$
0
0

Replies: 0

I have a site that pulls in data through an API and automactially creates/updates posts, these posts are a custom content type (event) & after updating them we want their cache to be automacically cleared however using w3tc_flush_post or w3tc_flush_url doesn’t work.

We’re able to programmatically clear posts & pages, but not our custom content type (event). We can clear the list page, which lists all events programmatically but not the individual events that were updated.

In particular it seem’s the page cache that caches our individual event pages as static html isn’t clearing. Just running w3tc_flush_all isn’t an option as the API is called to create/update event posts pretty frequently & this is a high traffic site so we can’t clear out the entire site cache every time this happens or we’ll have server issues if we’re experienceing a traffic spike.

Any help would be greatly appreciated.

  • This topic was modified 4 minutes ago by ReallyDeeJ.
  • This topic was modified 2 minutes ago by ReallyDeeJ.

Viewing all articles
Browse latest Browse all 59525

Trending Articles