# What causes "Published (pending changes)"

**URL:** <https://forum.umbraco.com/t/what-causes-published-pending-changes/8445>\
**Category:** Questions\
**Tags:** v17\
**Created:** [August 17, 2026, 8:06am UTC](https://forum.umbraco.com/t/what-causes-published-pending-changes/8445 "2026-08-17T08:06:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![JoppeRuessink](https://forum.umbraco.com/user_avatar/forum.umbraco.com/jopperuessink/32/2059_2.png) [@JoppeRuessink](https://forum.umbraco.com/u/JoppeRuessink)\
**Post date:** [August 17, 2026, 9:06am UTC](https://forum.umbraco.com/t/what-causes-published-pending-changes/8445/3 "2026-08-17T09:06:40Z")

</div>

Thanks for your quick response!

Using the `IContentService`, we first perform a save action, followed by a publish. Publishing is optional in our business logic, but I can confirm that in this particular case, a publish is indeed being performed.

```auto

// Batched save
_contentService.Save(contents.Values);

foreach (var content in contents.Values)
{
    PublishIfNeccessary(content);
}

```

Then the following action:

```auto
private void PublishIfNeccessary(IContent content)
{    
    // Try fetching published content    
    var publishedContent = _publishedContentCache.GetById(false, content.Key);
    if (publishedContent == null)    
    {        
         // If not found, it means the content is currently unpublished, so keep it unpublished        
        return;    
    }    

    if (!ProductRoutingHelper.HasValidUrl(publishedContent))    
    {        
        return;    
    }    

    var publishResult = _contentService.Publish(content, ["*"]);
}

```

This can also be seen in the node’s history:

 ![image](https://forum.umbraco.com/uploads/default/original/2X/6/65115a5f0b76fd24853f949fb54aeb90a42d0b2c.png)

---

_[View the full topic](https://forum.umbraco.com/t/what-causes-published-pending-changes/8445)._
