Skip to content

Commit

Permalink
skip query cache if it's not set,
Browse files Browse the repository at this point in the history
remove references where it is set to 0
  • Loading branch information
eRadical committed Jan 10, 2024
1 parent fd605ea commit eab38b9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions templates/etc/my.cnf.d/server.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
query_cache_size=0
query_cache_type=0

#
# Allow server to accept connections on this interface
Expand Down
2 changes: 0 additions & 2 deletions templates/etc/my.cnf.d/server.cnf.temp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
query_cache_size=0
query_cache_type=0

#
# Allow server to accept connections on this interface
Expand Down
2 changes: 0 additions & 2 deletions templates/etc/mysql/conf.d/galera.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
query_cache_size=0
query_cache_type=0

#
# Allow server to accept connections on this interface
Expand Down
2 changes: 0 additions & 2 deletions templates/etc/mysql/conf.d/galera.cnf.temp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
binlog_format=ROW
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2
query_cache_size=0
query_cache_type=0

#
# Allow server to accept connections on this interface
Expand Down
4 changes: 4 additions & 0 deletions templates/etc/mysql/my.cnf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ max_allowed_packet = {{ mariadb_mysql_settings['max_allowed_packet'] }}
max_binlog_size = {{ mariadb_mysql_settings['max_binlog_size'] }}
myisam-recover = BACKUP
port = {{ mariadb_mysql_port }}
{% if mariadb_mysql_settings['query_cache_limit'] is defined -%}
query_cache_limit = {{ mariadb_mysql_settings['query_cache_limit'] }}
{%- endif %}
{% if mariadb_mysql_settings['query_cache_size'] is defined -%}
query_cache_size = {{ mariadb_mysql_settings['query_cache_size'] }}
{%- endif %}
skip-external-locking
socket = {{ mariadb_login_unix_socket }}
thread_cache_size = {{ mariadb_mysql_settings['thread_cache_size'] }}
Expand Down

0 comments on commit eab38b9

Please sign in to comment.