Review main Merged

61645[FEATURE] Add cache:warmup console command

Benjamin Franzke CR +2 V +2 Hard +696 −47 updated 08/30/21, 12:33

Commit message

A cache:warmup CLI command is added that is safe to be
executed during deployment or development mode.

It is made extra sure that the command will be executable,
even if all caches are stale or even broken. That means this
command is able to repair broken di, localconf and tca caches.
Technically this became due to preparations for lowlevel
cli commands in #86248.

Caches that will be warmed up by TYPO3 core:
 + DI
 + ext_localconf
 + TCA
 + ext_tables
 + middleware stack
 + PackageManager
 + sites-configuration
 + expressionLanguageProviders
 + BackendRoutes
 + l10n (parses all xlf files, and creates cache for all languages)
 + assets: BackendIcons
 + dashboard: DashboardPresets
 + dashboard: WidgetGroups

Out of scope or impossible to be warmed:
 * Frontend warmup:
   Can be providedby extensions that listen for the
   CacheWarmupEvent
 * RequireJS (assets cache): Often applies with context-conditions
   therefore not reliably warmable.
 * Extbase – better of for a separate patch
   intesting cache entries would be: RequestHandlers, ClassSchemata
   and PersistenceClasses(?)
 * Warmup of Fluid templates:
   It is impossible to auto-detect whether all files in
   Resources/{Templates,Layouts,Partials} are Fluid files.
   Could by added later on with an explicit registry that
   allows to define which templates are suitable for warmup.

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 21