GraphQL API not reflecting changes

When we query page content through apollo against either the production or preview endpoints it is intermittently taking 15minutes to an hour to reflect saved or published content changes.

The API explorer does return the correct results.

Query

query MyQuery {
  page(filter: {id: {eq: "1863087"}}) {
      id
      title
      url
      isHcp
      body {
        ... on TextRecord {
          id
          text
          headerColor
        }
        ... on CountdownRecord {
          id
          endDateTime
        }
        ... on CrmFormRecord {
          id
          form
        }
        ... on MigraineModeRecord {
          id
          text
          alignment
        }
        ... on CtaBlockRecord {
          id
          color {
            hex
          }
          mobileColor {
            hex
          }
          ctaDestination
          ctaText
          icon
          text
          alignment
          image {
            alt
            url
            title
          }
          ctaNewWindow
        }
        ... on TextWithFormRecord {
          id
          text
          form
          headerColor
        }
        ... on SearchResultRecord {
          id
        }
      }
      seoKeywords
      seoDescription
      seoTitle
      marquee {
        ... on TextRecord {
          id
          text
          headerColor
        }
        ... on CrmFormRecord {
          id
          form
        }
      }
    }
  }

hello @micah.topping

if the API explorer is returning the correct value then our GraphQL API has refreshed the cache correctly.

Can you please double check you are not caching the value somewhere on your end?

Thinking about CDN edge caching, if you are getting the updated result from the API explorer means that your location is updated, maybe check if also your Apollo code is fetching from the same location. If it is, then I’m confident the caching issue is on your end.

Can you please investigate a bit more and we can discuss this further?