Skip to content

[Icons] Rework cache warm #1608

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

Merged
merged 1 commit into from
Mar 11, 2024
Merged

Conversation

smnandre
Copy link
Member

@smnandre smnandre commented Mar 11, 2024

The warm cache took a lot of time because

  • the regexp was very open (due to the non-prefix icon names)
  • twig templates were listed multiple times (due to the namespace system)

And a looot of false positives caused lot of cache locks for nothing.

On ux.symfony.com project with this component, the PR make the icons detected from 1000+ to 1 :)
And the command is now way quicker to run.

The prefix-less icons are warmed by simply listing the SVG at the root of the asset/icons directory

@carsonbot carsonbot added the Status: Needs Review Needs to be reviewed label Mar 11, 2024
@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Mar 11, 2024
@kbond kbond force-pushed the fix/warm-cache-command branch from d5d8e69 to 99b19f6 Compare March 11, 2024 01:34
@kbond
Copy link
Member

kbond commented Mar 11, 2024

Thanks Simon.

@kbond kbond merged commit 9ce315d into symfony:2.x Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants