-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content Version Cleanup #17861
Comments
Hi there @IOSven! Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better. We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Hi @IOSven , could you reproduce this on a fresh install? or give us clear steps and reproduce? |
Hi @NguyenThuyLan, After a long debugging session, I’ve pinpointed the issue. It seems that a new feature introduced in version 13.1.0, “Preserve versions of content (prevent cleanup) that are used in translations,” is causing some unexpected issues on our end. To address this, we’ll be creating a new issue in the Jumoo package GitHub repository to report the problem and gather further insights or solutions. |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
13.5.2
Bug summary
When save & publishing pages, the Prevent version cleanup value is automatically set to true. This behavior is unexpected, as we do not intend for this setting to be enabled by default. Additionally, in dbo.umbracoLog, we observe the log entries growing each time the page is re-published with the following logComment:
set preventCleanup = 'True' for version '3397359'.
Specifics
ContentVersionCleanupPolicy is enabled in appsettings:
History cleanup > prevent cleanup is disabled (default) for each document type.
Steps to reproduce
In our project we save & publish a new page.
We notice that the first 2 save & publish actions have 'prevent cleanup' setting is set to false
However, for subsequent actions, it defaults to true.
Each time the page is re-published, the umbracoLog table grows, with the following log comment being added repeatedly:
EDIT:
I've done some more research. We've got UMarketingSuite v 2.5.1 installed on our project.
This issue is only occuring when a document type has been marked as 'allow segmentation'.
Disabling this toggle does not reset the cleanup policy logic.
Expected result / actual result
When publishing pages, the 'Prevent version cleanup' setting is automatically set to true. We expect that enabling ContentVersionCleanupPolicy in the app settings will automatically set the Prevent version cleanup value to false, allowing the Umbraco cron job ContentVersionCleanupJob to clean up content versions as intended.
The text was updated successfully, but these errors were encountered: