⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
include
/
View File Name :
have_query_cache_disabled.inc
# Skip the test if 'query cache' is disabled. # Note : There are 2 techniques to disable query cache : # (1) Set query_cache_type to 0 or OFF # (2) Set query_cache_size to 0 disable_query_log; let $do_skip=0; let $qc_var_1= query_get_value("SELECT COUNT(*) AS var1 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME = 'have_query_cache' AND variable_value = 'YES'", var1, 1); if ($qc_var_1 == 1) { let $do_skip=1; } # Check if 'query_cache_type' is OFF let $qc_var_2= query_get_value("SELECT COUNT(*) AS var2 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME = 'query_cache_type' AND VARIABLE_VALUE = 'OFF'", var2, 1); if ($qc_var_2 == 1) { let $do_skip=0; } # Check if 'query_cache_size' is 0 let $qc_var_3= query_get_value("SELECT COUNT(*) AS var3 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME = 'query_cache_size' AND VARIABLE_VALUE = 0", var3, 1); if ($qc_var_3 == 1) { let $do_skip=0; } if ($do_skip) { skip Query Cache enabled, skipping test; } enable_query_log;