-
Notifications
You must be signed in to change notification settings - Fork 11
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
Prune unused content #154
Comments
Some more thoughts on this... We can delete old The hard part about pruning is determining which If we're willing to allow So
So this prune gets called more periodically, say after a publish. It also works in small increments. Edge case: Multiple |
The
PublishLog
and having LearningPackage-local Content entries makes it easier for us to do pruning in small cycles, like as a post-publish task.Proposed Solution
Step 1: As a post-publish async task for any given
PublishableEntity
, delete allPublishableEntityVersions
that are older than a certain period (1 week?), but preserve the following:PublishableEntityVersion
that has ever been published (appears in aPublishLogRecord
)Rely on cascading deletion behavior to delete
Component/ComponentVersion
.Step 2: After the deletions in Step 1, find any unreferenced
Content
entries and delete those.The text was updated successfully, but these errors were encountered: