-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[2.7][Translation] avoid freshness check based on content *inside* the cache #14281
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
Conversation
c6b37cb
to
162b07c
Compare
162b07c
to
f9939d8
Compare
any thought, before I merge ? |
…t *inside* the cache (mpdude, aitboudad) This PR was merged into the 2.7 branch. Discussion ---------- [2.7][Translation] avoid freshness check based on content *inside* the cache | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Fixed tickets | ~ | Tests pass? | yes | License | MIT it's mainly based on #14268 Commits ------- f9939d8 [Translation] avoid freshness check based on content *inside* the cache. f666657 [Translator] Cache does not take fallback locales into consideration
|
return ''; | ||
} | ||
$catalogueHash = sha1(serialize(array( | ||
'resources' => isset($this->resources[$locale]) ? $this->resources[$locale] : array(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aitboudad While backporting the Translator test case refactorings to the 2.6 branch, I noticed that the test for this fails because we don't have that fix on 2.6 yet (different resources still use same cache).
Is that something you would want to fix on 2.6 as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no IMO it's a new feature.
…r the Translator class (mpdude) This PR was merged into the 2.7 branch. Discussion ---------- [Translator]Test case refactoring and simplifications for the Translator class | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Fixed tickets | ~ | Tests pass? | yes | License | MIT Also see #14280 and #14281. This also tests for the fix in [b5da2ae](b5da2ae#diff-3126bfacb25e1e304b8cc720e8527a19) Commits ------- c0300f5 Remaining tweaks for translator tests on 2.7
it's mainly based on #14268