Skip to main content

SitecoreAI · Tutorial

Why Your Updated Partial Design Isn't Showing in Sitecore XMC

You pushed a new version of a partial, published the site, and the old one still renders. Why it happens and how to flush it.

gavAusWeb2 min read

You change a partial design (a header, say) and push it to a cloud environment. You even run a full site publish. Nothing changes: pages that use it keep rendering the old version, and so does preview.

The symptomLink to this section

  • The partial is updated, but page designs that include it still show the old content.
  • Publishing, even a full site publish, makes no difference.
  • Results are inconsistent: a few pages pick up the new partial while the rest stay stale.

The likely causeLink to this section

The CM builds a page's layout from its page design plus the partials that design lists, and caches that combination because rebuilding it for every page and every publish is expensive. Saving a page design in Pages fires Sitecore's save events, which throw the cached copy away. A serialisation push writes straight to the database and most likely skips those events, so the old partial stays in the cache. The inconsistency fits too: pages built while a design wasn't cached got the new partial, and the rest didn't.

The fixLink to this section

  1. Step 1: Check the preview site first

    After pushing a partial or page design to a cloud environment, open the -prod-preview site. Preview renders live from the CM, so if it is stale the cache is the problem, not publishing.

  2. Step 2: Re-save each page design

    For every page design that uses the partial, move the partial out, save, move it back in, and save again. Each move is a genuine editor save, so the cached layout is dropped and the next build reads the current partial.

  3. Step 3: Publish the page designs

    Saving changes the design's revision, so publishing it has something new to send. Edge records every page as depending on its page design, so publishing the design makes Edge republish all of those pages with freshly built layouts.

Avoiding it next timeLink to this section

Edit the partial directly in Pages where you can. That is an editor save, so the cache is cleared for you. If you do push partials or page designs by serialisation, plan on the re-save step afterwards.