-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Cache] Fixed Memcached adapter doClear()to call flush() #29436
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
Flushing clears completely the Memcache server, while clear should only affect the very items that are in one logical pool (ie same key prefix). Invalidation works already by using an incrementing version number as prefix. |
@nicolas-grekas But if you pass option to not use versioning? $adapter = new MemcachedAdapter($client, $namespace);
$adapter->enableVersioning(false); |
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.
To be merged on 3.4. If you want to rebase+retarget please do, otherwise we can do it while merging.
@nicolas-grekas How long it will take before it gets merged? Thx |
Thank you @raitocz. |
…raitocz) This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #29436). Discussion ---------- [Cache] Fixed Memcached adapter doClear()to call flush() | Q | A | ------------- | --- | Branch? | 4.2 | Bug fix? | yes | New feature? | no | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no | Tests pass? | yes | Fixed tickets | #29435 | License | MIT | Doc PR | symfony/symfony-docs MemcachedTrait now calls Memcached::flush via its client instead of just returning false. Commits ------- 447baac [Cache] Fixed Memcached adapter doClear()to call flush()
MemcachedTrait now calls Memcached::flush via its client instead of just returning false.