DevOps
System Administrator
Jahia 8.1
Jahia 8.2
Jahia 8
How to deactivate the deletion of versions upon the deletion of a website
Question
When I delete a website, it can take a lot of time and it can also cause an OutOfMemoryError.
How can I prevent that from happening?
Answer
This is a known issue and improvements have been brought to Jahia 8.2.1.0.
In all cases, here is a workaround to deactivate the deletion of versions upon the deletion of a website:
- Retrieve the source of Jahia related to the version you use
- Inside, retrieve the file applicationcontext-jcr.xml and modify it so the two parts like the following are commented:
<bean class="org.jahia.services.history.NodeVersionHistoryListener"> <property name="schedulerService" ref="SchedulerService"/> </bean>
- In the processing node, put this file in the folder JAHIA_HOME/digital-factory-config/jahia/
- Restart the processing node