Programmatically activate pages in batches
I have to activate 1000 pages from author to 7 publish servers daily .I want to schedule this process.How do we programmatically activate these pages in batches ?
I have to activate 1000 pages from author to 7 publish servers daily .I want to schedule this process.How do we programmatically activate these pages in batches ?
You can create a scheduled cron job to activate the pages programmatically (see code sample for activation shared by @Kautuksahni). You can define the number of pages to activate in one run as configuration property of the job.
Below are some of the example of cron jobs -
http://blogs.adobe.com/experiencedelivers/experience-management/scheduling_jobs_usingsling/
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.