mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	When the query cache is disabled, the server shouldn't attempt to take the 
query cache mutex.
                             
By using the command line option --query_cache_type=0, the user can disable
   
(backport from mysql-pe)
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			491 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			491 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
-- source include/have_query_cache.inc
 | 
						|
#
 | 
						|
# Bug#38551 query cache can still consume [very little] cpu time even when it is off.
 | 
						|
#
 | 
						|
SHOW GLOBAL VARIABLES LIKE 'query_cache_type';
 | 
						|
--error ER_QUERY_CACHE_DISABLED
 | 
						|
SET GLOBAL query_cache_type=ON;
 | 
						|
--error ER_QUERY_CACHE_DISABLED
 | 
						|
SET GLOBAL query_cache_type=DEMAND;
 | 
						|
--error ER_QUERY_CACHE_DISABLED
 | 
						|
SET GLOBAL query_cache_type=OFF;
 | 
						|
SET GLOBAL query_cache_size=1024*1024;
 | 
						|
SHOW GLOBAL VARIABLES LIKE 'query_cache_size';
 | 
						|
SET GLOBAL query_cache_size=0;
 | 
						|
 |