Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Routing] Discard in-memory cache of routes when writing the file-based cache#57645

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
derrabus merged 1 commit intosymfony:5.4frommpdude:clear-router-static-cache
Jul 4, 2024

Conversation

@mpdude
Copy link
Contributor

@mpdudempdude commentedJul 4, 2024
edited
Loading

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#57640
LicenseMIT

TheRouter has aprivate static ?array $cache field that it uses to cache compiled route collections in the case that OpCache is not available to cache the file-based cache already. This is somewhata poor man's Opcache replacement, useful e. g. for speedups during (functional) tests.

\Symfony\Component\Config\ResourceCheckerConfigCache::write contains special code to make sure the OpCache will reload files after they have been written, but thestatic property kind of "hides" this feature.

With this PR, thestatic cache entry is cleared as well.

@carsonbotcarsonbot added this to the5.4 milestoneJul 4, 2024
@carsonbotcarsonbot changed the title[Router] Discard in-memory cache of routes when writing the file-based cache[Routing]  Discard in-memory cache of routes when writing the file-based cacheJul 4, 2024
@OskarStarkOskarStark changed the title[Routing]  Discard in-memory cache of routes when writing the file-based cache[Routing] Discard in-memory cache of routes when writing the file-based cacheJul 4, 2024
@derrabus
Copy link
Member

Thank you@mpdude.

@derrabusderrabus merged commitcdd7595 intosymfony:5.4Jul 4, 2024
@mpdudempdude deleted the clear-router-static-cache branchJuly 4, 2024 13:40
This was referencedJul 26, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OskarStarkOskarStarkOskarStark approved these changes

@derrabusderrabusderrabus approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

4 participants

@mpdude@derrabus@OskarStark@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp