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

[Cache] fix known tag versions ttl check#33754

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
nicolas-grekas merged 1 commit intosymfony:3.4fromSwenVanZanten:3.4
Sep 30, 2019
Merged

[Cache] fix known tag versions ttl check#33754

nicolas-grekas merged 1 commit intosymfony:3.4fromSwenVanZanten:3.4
Sep 30, 2019

Conversation

@SwenVanZanten
Copy link
Contributor

QA
Branch?3.4
Bug fix?yes
New feature?no
Deprecations?no
Ticketsnone
LicenseMIT

The introduced changes from PR#27007 came with a knownTagVersionTtl property defaulted to 0.15 microseconds. The if statement defined on line 353 checks if the ttl is higher then the already known tag versions. This results in the opposite of the wanted behavior. Instead of waiting for the ttl to expire the if statement is only true if the known versions are lower than the version ttl.

So if this Adapter stays in memory the tag versions are never checked again if the ttl is already lower then the passed time.

The unit test I've added tests once if the version is changed and another time it doesn't get checked cause the ttl hasn't been expired yet.

@nicolas-grekasnicolas-grekas added this to the3.4 milestoneSep 30, 2019
@nicolas-grekas
Copy link
Member

Thank you@SwenVanZanten.

SwenVanZanten and kaspervrind reacted with thumbs up emoji

nicolas-grekas added a commit that referenced this pull requestSep 30, 2019
This PR was merged into the 3.4 branch.Discussion----------[Cache] fix known tag versions ttl check| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | none| License       | MITThe introduced changes from PR#27007 came with a knownTagVersionTtl property defaulted to 0.15 microseconds. The if statement defined on line 353 checks if the ttl is higher then the already known tag versions. This results in the opposite of the wanted behavior. Instead of waiting for the ttl to expire the if statement is only true if the known versions are lower than the version ttl.So if this Adapter stays in memory the tag versions are never checked again if the ttl is already lower then the passed time.The unit test I've added tests once if the version is changed and another time it doesn't get checked cause the ttl hasn't been expired yet.Commits-------205abf3 [Cache] fix known tag versions ttl check
@nicolas-grekasnicolas-grekas merged commit205abf3 intosymfony:3.4Sep 30, 2019
This was referencedOct 7, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

+2 more reviewers

@kaspervrindkaspervrindkaspervrind approved these changes

@darielopperdarielopperdarielopper approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

5 participants

@SwenVanZanten@nicolas-grekas@kaspervrind@darielopper@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp