What should query cache type be in MySQL?

What should query cache type be in MySQL?

Recently, I moved from standard MySQL to Percona, and used the Percona Wizard to generate my.cnf. However, I can see that, by default, the generated settings for my.cnf use query_cache_type = 0. (query cache is disabled). The only thing I run on the server is a WordPress blog. My questions are: May I enable query cache?

Why does MySQL Query Cache eat up system time?

As a result, the larger the query cache, the more system time is used for locks, flushes, and overhead until cache management eventually negates any benefit of MySQL’s query cache. Instead, it begins to eat away at throughput.

What’s the default size of the query cache?

By default, the query cache is disabled. This is achieved using a default size of 1M, with a default for query_cache_type of 0. To reduce overhead significantly, start the server with query_cache_type=0 if you do not intend to use the query cache.

Is the result similar of enabling query cache?

However, I can see that, by default, the generated settings for my.cnf use query_cache_type = 0. (query cache is disabled). The only thing I run on the server is a WordPress blog. My questions are: May I enable query cache? There are some WordPress plugins that offer database cache. Is the result similar of enabling query cache?

By default, the query cache is disabled. This is achieved using a default size of 1M, with a default for query_cache_type of 0. To reduce overhead significantly, start the server with query_cache_type=0 if you will not be using the query cache.

What should query cache type be in WordPress?

For a WordPress blog it should be fine to set query_cache_type = 1. See, the major problems with the query cache are: It has a single mutex on which any incoming or outgoing query must go through.

What does it mean when query cache is disabled?

Simply indicates it is disabled. badprint “Query cache may be disabled by default due to mutex contention.”; If query_cache_size is 0, you should also set query_cache_type variable to 0.