Skip to content

[Cache] add DeflateMarshaller - remove phpredis compression #34133

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
Oct 30, 2019

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Oct 26, 2019

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

phpredis compression doesn't play well with lua scripting as used in #33939
Let's remove it and provide a DeflateMarshaller instead.

Ppl can use it via decoration:

services:
    Symfony\Component\Cache\Marshaller\DeflateMarshaller:
        decorates: cache.default_marshaller
        arguments: ['@Symfony\Component\Cache\Marshaller\DeflateMarshaller.inner']

It's not enabled by default because that might break pools that are shared between different apps.

/cc @andrerom FYI

nicolas-grekas added a commit that referenced this pull request Oct 30, 2019
…ssion (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[Cache] add DeflateMarshaller - remove phpredis compression

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

phpredis compression doesn't play well with lua scripting as used in #33939
Let's remove it and provide a `DeflateMarshaller` instead.

Ppl can use it via decoration:
```yaml
services:
    Symfony\Component\Cache\Marshaller\DeflateMarshaller:
        decorates: cache.default_marshaller
        arguments: ['@symfony\Component\Cache\Marshaller\DeflateMarshaller.inner']
```

It's not enabled by default because that might break pools that are shared between different apps.

/cc @andrerom FYI

Commits
-------

452c863 [Cache] add DeflateMarshaller - remove phpredis compression
@nicolas-grekas nicolas-grekas merged commit 452c863 into symfony:4.4 Oct 30, 2019
@nicolas-grekas nicolas-grekas deleted the cache-deflate branch November 6, 2019 12:14
This was referenced Nov 12, 2019
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull request Mar 5, 2021
…che (Nyholm)

This PR was squashed before being merged into the 4.4 branch.

Discussion
----------

[Cache] Remove `compression` option from Redis and Memcache

This option was removed in 4.4 because it didn't work.

See symfony/symfony#34133

This will fix #15050

Commits
-------

b11322c [Cache] Remove `compression` option from Redis and Memcache
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.

2 participants