#103127CLI command cache:flush not respecting caches without explicit group set
Description
The CLI command `typo3 cache:flush` does not respect custom defined caches in extensions, unless they explicitly define a cache group in their configuration.
Reviews 1
History 46
-
Gerrit Code Review pushed patch set 1 for main to change 83012 status
NewUnder Review <span data-processor="relativetime" data-value="2024-02-15T11:43:42+00:00" > 02/15/24, 11:43 </span> -
Benjamin Franzke commented and changed status
Under ReviewRejected <span data-processor="relativetime" data-value="2024-10-10T15:59:21+00:00" > 10/10/24, 15:59 </span> -
Benjamin Franzke changed status
RejectedNeeds Feedback <span data-processor="relativetime" data-value="2024-10-10T16:01:37+00:00" > 10/10/24, 16:01 </span> -
Philipp Kitzberger commented <span data-processor="relativetime" data-value="2024-10-11T08:17:42+00:00" > 10/11/24, 08:17 </span>
I can confirm that Benjamin’s example is working as described.
-
Gerrit Code Review pushed patch set 2 for main to change 83012 status
Needs FeedbackUnder Review <span data-processor="relativetime" data-value="2024-10-18T13:59:10+00:00" > 10/18/24, 13:59 </span> -
Benjamin Franzke commented and changed status
Under ReviewRejected <span data-processor="relativetime" data-value="2024-11-04T15:26:10+00:00" > 11/04/24, 15:26 </span>Closing here, there is no bug, as written in https://review.typo3.org/c/Packages/TYPO3.CMS/+/83012/2#message-0497d77da1ea845495cdf188ebcc4b70fa561e95
Can not reproduce, tested with:
ext_localconf.php
Follow commands reveal that flushing works:
Note that the cache-group
allis assigned due to default-cache-configuration and will be returned by the CacheManager (if your cache is properly registered inext_localconf.php). This group is then included in the CacheFlushEvent and will be flushed by the CacheManager flush-event-handler.