Skip to content
Snippets Groups Projects
Commit 8d86c0b7 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

mysql: check if query cache is enabled as a shared function

parent 2e9e6dd6
No related branches found
No related tags found
No related merge requests found
......@@ -189,15 +189,14 @@ function _mysqlrenderdelta() {
# helper function for caching checks
# The function aborts the check ending with OK.
function _verify_cache(){
local bCacheEnabled=
_mysqlgetvar "have_query_cache" | grep "YES" >/dev/null
if [ $? -ne 0 ]; then
_mysqlgetvar "query_cache_type" | grep "OFF" >/dev/null
if [ $? -eq 0 ]; then
echo "INFO: Query cache (have_query_cache) is active but query_cache_type is OFF."
else
echo "INFO: Query cache (have_query_cache) is not active."
fi
echo "INFO: Query cache (have_query_cache) is not active."
ph.exit
fi
_mysqlgetvar "query_cache_type" | grep "OFF" >/dev/null
if [ $? -eq 0 ]; then
echo "INFO: Query cache (have_query_cache) is active but query_cache_type is OFF."
ph.exit
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment