How can I enable the query cache in mysql?

Add two lines to your my.cnf (usually /etc/my.cnf)


 


query_cache_size = 16M ( a reasonable size to start with, you can increase it later if needed)


query_cache_type=1


 


Then restart MySQL

Your rating: None Average: 2 (1 vote)