Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
query_cache off with query_cache_type=OFF OR query_cache_size=0
From the MySQL and MariaDB code (same - 5.5 version): https://github.com/mysql/mysql-server/blob/5.5/sql/sql_cache.h#L560 https://github.com/MariaDB/server/blob/5.5/sql/sql_cache.h#L572 This is used: https://github.com/mysql/mysql-server/blob/5.5/sql/sql_prepare.cc#L3058 (same in MariaDB code) The size=0 and type=0 are both sufficent conditions for the query cache to be disabled. As such lets consider it ok if its disabled only in one place. This is the case in mariadb where type=0 (OFF) is the default as is a non-zero query-cache size.
- Loading branch information