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