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:
- In Sitefinity CMS backend, navigate to Administration » Settings » Advanced.
- In the treeview on the left, expand System » Lifecycle and click Temp items cleanup.
- 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, enter30to keep Temp items for a month before they are deleted. - 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 enter0 13 * * 1, the task is performed every Monday at 1 pm.
The default value is0 0 * * 0, which means the task is performed at midnight every Sunday. - Click Save Changes.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your 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 ASP.NET Core and take advantage of its decoupled architecture and modern development model.