Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: #90197 - Introduce cache:flush console command #4406

Open
simonschaufi opened this issue Oct 30, 2024 · 0 comments
Open

Feature: #90197 - Introduce cache:flush console command #4406

simonschaufi opened this issue Oct 30, 2024 · 0 comments

Comments

@simonschaufi
Copy link
Collaborator

Feature: #90197 - Introduce cache:flush console command

https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.4/Feature-90197-IntroduceCacheFlushConsoleCommand.html

Feature: #90197 - Introduce cache:flush console command

See 90197

Description

It is now possible to flush TYPO3 caches using the command line.

The administrator can use the following CLI command:

./typo3/sysext/core/bin/typo3 cache:flush

Specific cache groups can be defined via the group option. The usage is
described as:

cache:flush [--group <all|system|di|pages|>]

All available cache groups can be supplied as option. The command
defaults to flush all available cache groups as the install tool does.

Extensions that register custom caches may listen to the via
TYPO3\CMS\Core\Cache\Event\CacheFlushEvent, but usually the cache
flush via CacheManager groups will suffice.

Impact

It is often required to clear caches during deployment of TYPO3 instance
updates, in order for content changes to become active.

TYPO3 caches can now be flushed in release postparatory steps. The
integrator may decide to flush all caches (common practice with
EXT:typo3_console) or may alternatively
flush selected groups (e.g. 'pages') in case the
cache:warmup (see 93436) command is
used as companion in release preparatory steps.

Deployment steps could then be:

  • Release preparation:
    • git-checkout/rsync your codebase (on CI or on live system)
    • composer install (on CI or on live
      system)
    • vendor/bin/typo3 cache:warmup --group
      system
      (only on the live system)
  • Change release symlink to the new release folder
  • Release postparation
    • vendor/bin/typo3 cache:flush --group
      pages

CLI, ext:core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant