Improve caching speeds by using "cache.system" #18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Blackfire profiles are based on the reproducer from symfony/ux#2812, with 50 rows, APP_DEBUG=0 APP_ENV=prod and optimized Composer files
Actually, after many refreshes and TailwindMerger's cache warm-up: https://blackfire.io/profiles/41d1047c-e33d-4849-9c89-f87447875886/graph

With this PR, 1st request when the TailwindMerger's cache is still cold, we don't see real changes: https://blackfire.io/profiles/bd954d82-ced6-4fd7-a308-11a830d56ca5/graph

With this PR, next requests, when TailwindMerger's cache is warmed-up: https://blackfire.io/profiles/34e06af9-cf57-46b6-8615-584739de364c/graph

Delta: https://blackfire.io/profiles/compare/383c6e05-0afd-484e-a680-e06ff080383c/graph

It works because
cache.system
uses https://symfony.com/doc/current/components/cache/adapters/php_files_adapter.html which is more performant than https://symfony.com/doc/current/components/cache/adapters/filesystem_adapter.html.However, I'm not sure if that's the recommended way to do so, or if we should create the
PhpArrayAdapter
service ourselves.