Automatic cleanup of temp items

In Sitefinity CMS, there are four cycles of a lifecycle item – Master, Temp, Live, and Deleted. When an item is being edited, a Temp version of this item is created by copying the Master version. These Temp items are stored in the database and, if left unchecked in large numbers, can slow down the performance of your website. Therefore, an automatic cleanup of unused Temp files is enabled by default and scheduled for midnight, every Sunday. This process should be scheduled to run at times when your website is under low load.

To schedule the process, perform the following:

  1. In Sitefinity CMS backend, navigate to Administration » Settings » Advanced.
  2. In the treeview on the left, expand System » Lifecycle and click Temp items cleanup.
  3. In field Maximum temp item age, enter the number of days for which unused Temp items are stored in the database before being deleted by the automatic cleanup task.
    For example, enter 30 to keep Temp items for a month before they are deleted.
  4. In field Automatic temp items cleanup cron specification, enter the time and the day when the cleanup 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 0 * * 0, which means the task is performed at midnight every Sunday.
  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?