Skip to content
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

[Cache] Pass arg to get callback everywhere #31879

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Jun 5, 2019

Q A
Branch? 4.2
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Some adapters does not pass an useless "save" bool arg. However, that makes a CallbackInterface callable unusable with them since the arg is required in the interface.

@nicolas-grekas nicolas-grekas added this to the 4.2 milestone Jun 5, 2019
@fancyweb fancyweb force-pushed the fix-cache-traceable-adapter-callback-call branch from 957267a to d03eb03 Compare June 6, 2019 06:05
@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit d03eb03 into symfony:4.2 Jun 6, 2019
nicolas-grekas added a commit that referenced this pull request Jun 6, 2019
This PR was merged into the 4.2 branch.

Discussion
----------

[Cache] Pass  arg to get callback everywhere

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Some adapters does not pass an useless "save" bool arg. However, that makes a `CallbackInterface` callable unusable with them since the arg is required in the interface.

Commits
-------

d03eb03 [Cache] Pass  arg to get callback everywhere
@fancyweb fancyweb deleted the fix-cache-traceable-adapter-callback-call branch June 6, 2019 09:16
@fabpot fabpot mentioned this pull request Jun 6, 2019
@fabpot fabpot mentioned this pull request Jun 26, 2019
nicolas-grekas added a commit that referenced this pull request Feb 21, 2023
…c expiration handler (AdamKatzDev)

This PR was merged into the 5.4 branch.

Discussion
----------

[Cache][Messenger] fixed CallbackInterface support in async expiration handler

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

Adds support for CallbackInterface in EarlyExpirationHandler and thus fixes async cache recomputing for callables that implement CallbackInterface. Earlier similar errors were fixed in #31879.

Commits
-------

a8dea95 [Messenger][Cache] fixed CallbackInterface support in async expiration handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants