Skip to content

[Cache] Make sure the chain cache configuration works #11813

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
Jun 25, 2019

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Jun 23, 2019

I just tried the configuration and noticed a few issues.

Im not 100% sure this actually works. Lets wait for symfony/symfony#32139

Im sure now

@Nyholm
Copy link
Member Author

Nyholm commented Jun 24, 2019

I've updated the PR.

I tested the new config and it works perfectly.

@javiereguiluz
Copy link
Member

@Nyholm can you please confirm that this must go to 4.3 branch and not to 3.4 or 4.2? Thanks.

@Nyholm
Copy link
Member Author

Nyholm commented Jun 25, 2019

Sorry, no. This is equally true for 3.4. All active versions of the docs should be updated with this PR.

@javiereguiluz javiereguiluz added this to the 3.4 milestone Jun 25, 2019
@javiereguiluz javiereguiluz changed the base branch from 4.3 to 3.4 June 25, 2019 08:18
@javiereguiluz
Copy link
Member

Thanks Tobias.

@javiereguiluz javiereguiluz merged commit 9fbebaf into symfony:3.4 Jun 25, 2019
javiereguiluz added a commit that referenced this pull request Jun 25, 2019
…yholm)

This PR was submitted for the 4.3 branch but it was squashed and merged into the 3.4 branch instead (closes #11813).

Discussion
----------

[Cache] Make sure the chain cache configuration works

I just tried the configuration and noticed a few issues.

~~Im not 100% sure this actually works.~~ Lets wait for symfony/symfony#32139

Im sure now

Commits
-------

9fbebaf [Cache] Make sure the chain cache configuration works
@Nyholm Nyholm deleted the patch-8 branch June 25, 2019 08:24
@Nyholm
Copy link
Member Author

Nyholm commented Jun 25, 2019

Thank you for the review and thank you for merging

fabpot added a commit to symfony/symfony that referenced this pull request Jul 5, 2019
…y providing several adapters (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[FrameworkBundle] Allow creating chained cache pools by providing several adapters

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

Replaces #30984, follows symfony/symfony-docs#11813

This PR allows defining several adapters for one pool. When doing so, this defines a chain pool.
The benefit is that all chained pools get automatic namespace and lifetime, so things are transparent:

```yaml
pools:
    my_chained_pool:
        default_lifetime: 12
        adapters:
          - cache.adapter.array
          - cache.adapter.filesystem
          - {name: cache.adapter.redis, provider: 'redis://foo'}
```

(see fixtures for example of PHP/XML config)

/cc @Nyholm @pborreli FYI

Commits
-------

29ba091 [FrameworkBundle] Allow creating chained cache pools by providing several adapters
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.

4 participants