Skip to Content
Sitecore Cookbook for Developers
book

Sitecore Cookbook for Developers

by Yogesh Patel, Patel Y Sunderbhai
April 2016
Beginner content levelBeginner
338 pages
7h 38m
English
Packt Publishing
Content preview from Sitecore Cookbook for Developers

Using a scheduling agent to delete older item versions

You learned about Sitecore jobs, which we invoked on user action. Now, you will learn how we can schedule such jobs in Sitecore. Scheduling tasks is possible in Sitecore using two different techniques: agents and database tasks.

We will take a case of a Sitecore instance using Sitecore item versioning. Now think, what will happen when your items have a number of versions? Your content owners are facing difficulty in managing them, which will make the user interface slower and impact the overall Sitecore performance as well. So, we will create a Sitecore agent that will keep a few of the latest versions and delete all the older versions of items every 12 hours so that users do not need to do ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Azure for Developers

Hands-On Azure for Developers

Kamil Mrzygłód

Publisher Resources

ISBN: 9781784396527Supplemental Content