WL#10837: Deprecate query cache
Proposed changes:
- Deprecation warnings in the parser:
- on
SQL_CACHEandSQL_NO_CACHEsyntax, - on references to QC-related system variables.
- on
- Deprecation warnings in the command line help text of the
mysqldprogram.
5.7
Add deprecation "no replacement" warnings to:
SQL_CACHEandSQL_NO_CACHEsyntax in the parser,any references to any QC-related system variables and help texts for their command-line counterparts:
have_query_cachequery_cache_limitquery_cache_min_res_unitquery_cache_sizequery_cache_typequery_cache_wlock_invalidate
assignments to
ndb_cache_check_timeand its help text{RESET, FLUSH} QUERY CACHEstatements.
Note in the documentation, that QC-related variables (SHOW STATUS LIKE 'qc%') will be removed in the future release:
Qcache_free_blocksQcache_free_memoryQcache_hitsQcache_insertsQcache_lowmem_prunesQcache_not_cachedQcache_queries_in_cacheQcache_total_blocks
8.0
Since 8.0 still has (i.e. silently ignores) the SQL_NO_CACHE syntax and always returns false on the have_query_cache variable, maintain deprecation warnings for both like we do in 5.7 for a while.