check query cache verification on mysql >= 5.6.8
Add query cache type verification MySQL >= 5.6.8 has query_cache_type OFF by default. It will disables the entire cache. http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_query_cache_type
This commit is contained in:
parent
dfb57bb871
commit
7a28b64ecf
1 changed files with 4 additions and 1 deletions
|
@ -826,6 +826,9 @@ sub mysql_stats {
|
||||||
} elsif ($myvar{'query_cache_size'} < 1) {
|
} elsif ($myvar{'query_cache_size'} < 1) {
|
||||||
badprint "Query cache is disabled\n";
|
badprint "Query cache is disabled\n";
|
||||||
push(@adjvars,"query_cache_size (>= 8M)");
|
push(@adjvars,"query_cache_size (>= 8M)");
|
||||||
|
} elsif ($myvar{'query_cache_type'} eq "OFF") {
|
||||||
|
badprint "Query cache is disabled\n";
|
||||||
|
push(@adjvars,"query_cache_type (=1)");
|
||||||
} elsif ($mystat{'Com_select'} == 0) {
|
} elsif ($mystat{'Com_select'} == 0) {
|
||||||
badprint "Query cache cannot be analyzed - no SELECT statements executed\n";
|
badprint "Query cache cannot be analyzed - no SELECT statements executed\n";
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue