Review main Merged

82064[FEATURE] Allow record reset in CLI command cleanup:localprocessedfiles

Garvin Hicking CR +2 V +2 Normal +172 −29 updated 01/04/24, 14:12

Commit message

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.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 9