Skip to content
Snippets Groups Projects
Commit 141e8fd4 authored by Garvin Hicking's avatar Garvin Hicking Committed by Stefan Bürk
Browse files

[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: default avatarGuido Schmechel <guido.schmechel@brandung.de>
Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarGuido Schmechel <guido.schmechel@brandung.de>
parent a1a12035
Branches
Tags
Showing
with 172 additions and 29 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment