How to flush a custom content source after the update of a story in Composer #80
-
|
Hello. We are currently using a custom content source, based on content-api, configured as the global content source on all story templates in PageBuilder. At the moment:
Our goal is to:
We found the documentation related to automated cache clearing in Arc XP: Our questions are:
We want to make sure we align with Arc XP’s supported caching model and avoid relying on unsupported or internal mechanisms. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hello @elawsonbody-cs Yes, you can safely increase the TTL of your global content source to hours, as long as your global content response includes the story’s On the “will updates show immediately after republish?” part: for Composer stories, Arc XP’s automated cache clear is designed to invalidate cached content based on the story’s canonical URL and then trigger the PageBuilder cache clearing process. Importantly, even when this happens, PageBuilder clears only the global content source cache for the resolver configuration; secondary/feature content on the page is not automatically refreshed as part of the publish event and will continue to rely on its own TTL/expiration behavior. Automated Cache clear About flushing “our custom endpoint” specificallyIf your custom global content source points to your own service (or you have an additional caching layer in front of Content API), Arc XP’s automated cache clear can’t directly purge that third-party cache. Arc-managed cache clearing targets Arc layers (CDN/origin + PageBuilder caches), not arbitrary upstream services you operate. In that scenario, you have two practical patterns:
Can you use the debugger / IFX cache clear?For manual troubleshooting and validation, yes — PageBuilder Editor’s Content Debugger explicitly supports cache actions (Fetch, Update, Clear) against a specific content source and parameter set. That’s the supported way to force-refresh or clear PageBuilder’s content cache interactively. Debugging your content What we wouldn’t recommend is treating the debugger (or any behind-the-scenes calls it makes) as an automated “purge on every publish” mechanism. It’s intended as a dev/support tool, not an event-driven invalidation API for production workflows. If you need a supported manual “page URL purge”If the operational requirement is “I need this page updated now,” the Delivery → Cache Clear tool is the supported manual lever. It clears the rendered page cache in Delivery and also clears PageBuilder Engine’s global content cache for that URL (again: primary/global content only). Clearing your website cache Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hello @elawsonbody-cs
Yes, you can safely increase the TTL of your global content source to hours, as long as your global content response includes the story’s
_id(and you do not strip it out). PageBuilder Engine uses the_idfrom the global content response to tag the rendered output, and that tag is what enables the automated cache clear flow when content is updated. If_idis missing, cache clear can’t reliably target the right PageBuilder content cache entry. Content Cashing In PB EngineOn the “will updates show immediately after republish?” part: for Composer stories, Arc XP’s automated cache clear is designed to invalidate cached content based on the story’s canonical URL and then…