cancel
Showing results for 
Search instead for 
Did you mean: 

How to set system.content.orphanProtectDays to less than 1 day

joseph
Confirmed Champ
Confirmed Champ
It is possible to set this variable to, say, 6 hours? I need to clean contentstore faster because too many users download documents and folders as ZIP and this action creates orphan nodes.

Thanks for your help.

4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator
Hello,

orphanProtectDays can't be set to hours granularity - but you should be able to set it to 0 days. But keep in mind that this is only a protection range setting and does not affect how often the cleanup job actually runs. You need to adjust the system.content.orphanCleanup.cronExpression property as well to trigger the job more frequently. Instead of waiting for the job to run, you might also like to check out the system.content.eagerOrphanCleanup option to clear orphans as soon as they are created.

Keep in mind that Alfresco will not delete those orphans, only move them into contentstore.deleted. The final cleanup will have to be dealt with outside of Alfresco.

Regards
Axel

joseph
Confirmed Champ
Confirmed Champ
Hello Alex.
As mentioned here about system.content.orphanProtectDays: http://docs.alfresco.com/community/concepts/clean-content.html, "Setting this value to zero will result in a system warning as it breaks the transaction model". What is the "transaction model" and what are the risks associated with breaking it?

I tried system.content.eagerOrphanCleanup = true and it works when deleting a document, but orphan nodes for downloaded documents as ZIP still appear in contentstore.

Currently, my settings are:

system.content.orphanProtectDays=1
system.content.eagerOrphanCleanup=true
system.content.orphanCleanup.cronExpression=0 0/5 * * * ? (run cleaning job every 5 minutes)

Regards
Jose

christian1607
Champ in-the-making
Champ in-the-making

Where is located the system.content.orphanProtectDays file? 

 

There is no such "file". It is just a property.

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.