While reading this thread, I investigated if "cleanup databases" will trigger serialization process. I checked log files and nothing related to serialization is logged?

@Dmytro suggested that Sitecore never triggers serialization process.

Does that mean someone who is using Unicorn will get those orphan trees and items back in the next sync? Is it better to reserialize in unicorn.aspx every time we did a database cleanup?

Or does Unicorn pick up the database cleanup task and reserialize automatically?

  • I don't think Sitecore ever triggers serialization automatically? So I suppose this question is actually about whether or not Unicorn will pick up database changes after you run a cleanup. Commented Dec 16, 2016 at 12:12
  • make sense. I will update the question. Commented Dec 16, 2016 at 13:00

2 Answers 2


I asked a similar question a little while back, about the interop between Sitecore and Unicorn on disk files.

If you have Transparent-Sync on or have your Unicorn.DataProvider.config file configured, then there is a direct relation between Sitecore and the Unicorn serialization files on disk. If you update an item, in a part of Sitecore that is tracked, the changes will be written to disk. If you are not running Transparent Sync or have your Unicorn.DataProvider.config configured (in production scenario). When you run unicorn.aspx again, it move those items to the recycle bin, if they are new. And put them back, if they still exist on disk.

I hope that helps.


Cleanup databases triggers a cleanup of the SQL tables, not of content items' effective data. Serialized item state should be unaffected by a cleanup.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.