Skip to content

Commit a9cc4d5

Browse files
author
Miroslav Banov
committed
Have option to enable query cache
1 parent 2450a28 commit a9cc4d5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ mysql_read_buffer_size: "1M"
4343
mysql_read_rnd_buffer_size: "4M"
4444
mysql_myisam_sort_buffer_size: "64M"
4545
mysql_thread_cache_size: "8"
46+
mysql_query_cache_type: "1"
4647
mysql_query_cache_size: "16M"
4748
mysql_query_cache_limit: "1M"
4849
mysql_max_connections: "151"

templates/my.cnf.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ read_buffer_size = {{ mysql_read_buffer_size }}
7676
read_rnd_buffer_size = {{ mysql_read_rnd_buffer_size }}
7777
myisam_sort_buffer_size = {{ mysql_myisam_sort_buffer_size }}
7878
thread_cache_size = {{ mysql_thread_cache_size }}
79+
query_cache_type = {{ mysql_query_cache_type }}
7980
query_cache_size = {{ mysql_query_cache_size }}
8081
query_cache_limit = {{ mysql_query_cache_limit }}
8182
max_connections = {{ mysql_max_connections }}

0 commit comments

Comments
 (0)