[FEATURE] Allow record reset in CLI command cleanup:localprocessedfiles
A new CLI Symfony Command option `--all` is added to the CLI command `bin/typo3 cleanup:localprocessedfiles` that allows to reset all entries in the database to force re-creating processed files. When developing FAL features or updating installations with large user-generated content fileadmin storages, it may be helpful to clean the sys_file_processedfile database table completely to force a rebuild (i.e. when new FAL-Processors are added). This table holds all locally generated processed files with specific crop or size variants (or references to unaltered originals, or "proxy" entries). The new command option will also report the numbers of deleted records before execution, and allows you to review execution. It is not set by default. Also, a small error in the output has been fixed that counted the number of database records wrongly. Tests were added for the new option. Resolves: #102582 Releases: main Change-Id: I7c490cc2c803e136cbd8db2ddcdbf25ac96ec796 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82064 Reviewed-by:Guido Schmechel <guido.schmechel@brandung.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Guido Schmechel <guido.schmechel@brandung.de>
Showing
- typo3/sysext/core/Documentation/Changelog/13.0/Feature-102582-AllowCLICommandCleanupLocalprocessedfilesToResetAllRecords.rst 39 additions, 0 deletions...CLICommandCleanupLocalprocessedfilesToResetAllRecords.rst
- typo3/sysext/lowlevel/Classes/Command/CleanUpLocalProcessedFilesCommand.php 11 additions, 5 deletions...vel/Classes/Command/CleanUpLocalProcessedFilesCommand.php
- typo3/sysext/lowlevel/Classes/Service/CleanUpLocalProcessedFilesService.php 48 additions, 22 deletions...vel/Classes/Service/CleanUpLocalProcessedFilesService.php
- typo3/sysext/lowlevel/Tests/Functional/Clean/CleanUpLocalProcessedFilesTest.php 68 additions, 2 deletions...Tests/Functional/Clean/CleanUpLocalProcessedFilesTest.php
- typo3/sysext/lowlevel/Tests/Functional/Fixtures/DataSet/ReferencedImage.png 0 additions, 0 deletions...vel/Tests/Functional/Fixtures/DataSet/ReferencedImage.png
- typo3/sysext/lowlevel/Tests/Functional/Fixtures/DataSet/ReferencedImage2.png 0 additions, 0 deletions...el/Tests/Functional/Fixtures/DataSet/ReferencedImage2.png
- typo3/sysext/lowlevel/Tests/Functional/Fixtures/DataSet/sys_file_processedfile.csv 3 additions, 0 deletions...ts/Functional/Fixtures/DataSet/sys_file_processedfile.csv
- typo3/sysext/lowlevel/Tests/Functional/Fixtures/Modify/allDeleted.csv 2 additions, 0 deletions.../lowlevel/Tests/Functional/Fixtures/Modify/allDeleted.csv
- typo3/sysext/lowlevel/Tests/Functional/Fixtures/Modify/oneDeleted.csv 1 addition, 0 deletions.../lowlevel/Tests/Functional/Fixtures/Modify/oneDeleted.csv
Please register or sign in to comment