Take the community feedback survey now.

CMS 12 & Graph - expired content in IList<ContentReference>

Vote:
 

Hi,
Today, I was investigating an issue related to expired content in Optimizely Graph. 
What I found is that when the page expires and it's referenced in the block by drag & dropping it inside the list of references, it's still returned when queried in Graph.  What I would expect in this case is that expired content is removed from the JSON representation of that list in the graph. 

public virtual IList<ContentReference>? RelatedPages { get; set; }

Instead of removing it, it just sets all fields in the expanded object to null.  You can see it in the screenshot below. The first item is published, and the second one has expired:



I also checked how this works with content areas, and the expected behavior actually occurs there - expired items are removed from the JSON response. I'm wondering whether this is a bug or intentional by design. If it's by design, then the behavior is inconsistent between content areas and reference lists.

I investigated this using the following versions:

  • EPiServer.CMS - 12.33.1
  • Optimizely.ContentGraph.Cms - 3.19.1

I also tried upgrading Optimizely.ContentGraph.Cms to v4.0.1 and settings ContentVersionSyncMode to ContentVersionSyncMode.PublishedOnly but it didn't make any difference.

Has anyone experienced this issue? Perhaps there's a configuration I'm missing or a workaround to handle this.
I would appreciate any hints or suggestions.




#340603
Edited, Oct 08, 2025 8:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.