Schedule automatic sync of deleted and unpublished items


If you have the SiteSync module installed and configured, you can setup automatic sync of deleted and unpublished items. In this way you do not have to manually remove deleted and unpublished content from your site.
You can specify for how long these items are kept before they are removed and at what interval the sync process should be executed. 


To schedule the process, perform the following:

  1. In Sitefinity CMS backend, navigate to Administration » Settings » Advanced » SiteSync » Automatic sync.

  2. Tick the box under Enabled automatic sync of deleted and unpublished items to enable the process.
  3. In Time tolerance before syncing deleted or unpublished items, enter the number of days for which deleted and unpublished items are kept before the automatic process syncs and removes them. 
    Set the time to 0 if you want to sync items with the first scheduled automatic sync task.
  4. In Schedule automatic sync of deleted and unpublished items, enter the time and the day when the automatic sync task will be executed using a Cron expression. 
    For example, if you enter 0 13 * * 1, the task is performed every Monday at 1 pm. 
    The default value is 0 * * * *, which means the sync is performed every hour.
  5. Click Save changes.

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Get started with Integration Hub | Sitefinity Cloud | Sitefinity SaaS

This free lesson teaches administrators, marketers, and other business professionals how to use the Integration hub service to create automated workflows between Sitefinity and other business systems.

Web Security for Sitefinity Administrators

This free lesson teaches administrators the basics about protecting yor Sitefinity instance and its sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?