Posted by pillarsdotnet on March 20, 2011 at 12:48pm
1 follower
| Project: | Memcache API and Integration |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
There is unnecessary and redundant code in dmemcache_stats().
Also, if class_exists('Memcached') then there is no need to create menu entries for per-type statistics, since the Memcached extension does not support this.
Comments
#1
The attached patch:
#2
#3
Fixed typo in above patch and also one "else if" --> "elseif" correction in dmemcache_object() function.
#4
Another redundancy removed -- no need to test for count($stats) one line before the foreach() that will skip if count = 0.
#5
Bump.