All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
TBD
3.4.1 - 2022-05-13
- Fix startup error, caused by version parser failing to parse extended
build.number
generated by CCv2 build process (#6)
Many thanks to @ths-sybit for fixing the issue!
3.4.0 2022-03-28
- Cleanup
SavedValue
s for delete operations after one month - Experimental: Define DB indices to accelerate cleanup queries in CCv2
The minimum required versions for this feature are: 1905.33, 2005.17, 2011.12, 2105.2
In case of problems- Report an issue in this repository
- Comment-out the offending type / index in the
items.xml
- Composite cronjob to cleanup
SavedValue
/SavedValueEntry
ProcessTaskLog
cleanup now checksmodifiedTime
like all the other cleanup jobs
- Custom CMS Version GC job (
jdbcVersionGCJob
) is now backwards compatible with 2105 and recent patch releases (#3).
If you are on a more recent Commerce version, the job will do nothing. Please use the improved ootb cleanup instead (introduced with 1905.30, 2005.14, 2011.9).
- Remove triggers of cronjobs that are now part of a composite job.
- Remove custom CMS version GC job
REMOVE Trigger; cronJob(code)[unique = true]
;savedValueEntryCleanupCronJob;
# remove custom job
REMOVE Cronjob;code[unique = true]
;jdbcVersionGCCronJob;
3.3.0 - 2021-06-09
- Retention periods are now configurable via properties
(check
project.properties
for details)
- Retention rules and cron jobs that depend on each other are now grouped and executed in the correct order via composite cronjobs
Remove all triggers of cronjobs that are now part of a composite job
REMOVE Trigger; cronJob(code)[unique = true]
; emailMessageCleanupCronJob
; emailAddressCleanupCronJob
; emailAttachmentCleanupCronJob
; cartCleanupCronJob
; anonymousCartCleanupCronJob
; distributedImpexCronJobCleanupCronJob
; distributedImpexJobCleanupCronJob
; distributedImportProcessCleanupCronJob
; importBatchCleanupCronJob
; importBatchContentCleanupCronJob
; businessProcessCleanupCronJob
; failedBusinessProcessCleanupCronJob
; progressBusinessProcessCleanupCronJob
; orphanedTaskConditionCleanupCronJob
; orphanedProcessTaskCleanupCronJob
; orphanedBusinessProcessParameterCleanupCronJob
; orphanedProcessTaskLogCleanupCronJob
3.2.0 - 2021-05-06
- Cleanup
ProcessTaskLog
(thanks to @ashwinineha 🎉)
3.1.0 - 2021-04-30
- Cleanup
SavedValueEntries
3.0.0 - 2021-04-30
- Cleanup all
BusinessProcess
- allBusinessProcess
es, regardless of their state, are deleted after 6 months at the latest. Make sure to adjust this to your project requirements! - Cleanup potentially orphaned items related to
BusinessProcess
- Aggressive cleanup for
cmsVersionGCProcess
- Cleanup additional generated impex media
- Cleanup
EmailMessage
andEmailAddress
- Cleanup
SolrIndexOperation
- Cleanup all types related to Distributed ImpEx
retentionrule-to-impex.groovy
- helper script that takes the results of aFlexibleSearchRetentionRule
and delete the outdated items via impex. Useful for bulk cleanup.- README now documents queries to analyze outdated/stale data
-
CMS Version Garbage Collection Job
- renamed to
jdbcVersionGCCronJob
/jdbcVersionGCJob
- optimized cleanup logic
- dynamically determine correct DB table names using the type system
- renamed to
-
Simplify cronjob retention rule (
cronJobRule
) -
Cleanup CronJobs now execute between 00:00 - 06:00
-
Longer retention period (4 weeks) for successfully finished
BusinessProcess
- CMS Version Garbage Collection Job - job is now abortable for real
-
Delete old CMS Version GC Job definition
REMOVE CronJob;code[unique=true];job(code)[unique=true] ;cmsVersionGCCronJob;cmsVersionGCJob; REMOVE ServicelayerJob;code[unique=true];springId[unique=true]; ;cmsVersionGCJob;cmsVersionGCPerformable;
2.0.0 - 2021-03-23
- Cleanup jobs / retention rules are now imported on-demand based on the extensions the project uses.
-
Custom retention cronjob to replace CMS Version Garbage Collection.
The ootb garbage collection mechanism is over-engineered and should be a regular cronjob. -
Retention rules and jobs for the promotion engine, based on Top 10 Recommendations for Improving the Performance of your Commerce Cloud Promotion Engine
1.0.1 - 2020-12-09
- Bulk cleanup cronjob for log files - useful for a one-time cleanup before the retention job for job logs is enabled
1.0.0 - 2020-11-26
Initial release
-
Cleanup for:
- CronJobs
- CronJob Histories
- Lob Logs / Log Files
- Impex Media
- HTTP Sessions
- Business Processes
- Carts