I am running MySQL 5.5.37. I have a cronjob set to run every 6 hours to flush the query cache. I realized that if I don't do that, then the cache becomes fragmented and average query response time could double or triple. 95% of my data is saved in MyISAM tables.
My average response time is between 15ms to 30ms as long as I have the cronjob run.
Is this normal behavior? Or does it indicate that I have an underlying issue that should be fixed? Perhaps my query_cache_min_res_unit value is too low, which is causing fragmentation? Or is fragmentation unavoidable and flushing the cache is perfectly normal?
QUERY CACHE
Query cache is enabled
Current query_cache_size = 4.08 G
Current query_cache_used = 1.05 G
Current query_cache_limit = 3.24 G
Current Query cache Memory fill ratio = 25.79 %
Current query_cache_min_res_unit = 4 K