I believe this is already enabled:

query_cache_size = 256M
query_cache_limit = 4096M
query_cache_type = 1