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
Memcached Bytes Replaced with Version #759
Comments
Hello curious contributor !
|
Hello, Please reformat the issue using the default's issue template as I'm not a magician 👍🏼 Thanks you, |
Configuration
Describe the bug Per above, it appears the original coder copy and pasted the line for 'bytes' in Memcached driver, but forget to change 'version' to 'bytes'. So when you ask for the stats:
To Reproduce Will reproduce no matter way you ask for the stats, because its always using the wrong value for bytes. Expected behavior Additional context
https://blog.serverdensity.com/monitor-memcached/ I've already edited my copy to make fix the clerical error, (presuming it is in fact just a clerical error). But as I say, if you think I should instead be using something more independent of the driver, I don't disagree, but I need to know how to get the monitoring in whatever the proper way is. |
Hello, I identified the issue on v8 and v7. The commits are waiting for build to pass before merging. Then I'll make a new release by the end of week. Cheers, |
most excellent, thank you sir. |
I was all set to use this package as our memcached adaptor, everything looked good. But when we actually tried to use it, its not usable.
phpfastcache/lib/Phpfastcache/Drivers/Memcached/Driver.php
line: 73:
$stats['bytes'] = (isset($stats['bytes']) ? $stats['version'] : 0);
is magically replacing bytes with the version, so its completely impossible to track the percentage of cache usage.
Why is bytes being overridden with the version? Not only does it break statistics coming from memcache, but there are no comment in the code about the justification for breaking the standard behavior of memcache, and no alternative route is given to getting the stats as the are supposed to be.
The text was updated successfully, but these errors were encountered: