MXS-1475 Act accordingly if cache disabled
If caching is dynamically disabled, then CACHE_USE_AND_POPULATE is turned into CACHE_POPULATE leading to the cache being refreshed but not used.
This commit is contained in:
		@ -890,6 +890,12 @@ CacheFilterSession::cache_action_t CacheFilterSession::get_cache_action(GWBUF* p
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (!m_enabled && (action == CACHE_USE_AND_POPULATE))
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        action = CACHE_POPULATE;
 | 
				
			||||||
 | 
					        zReason = "usage disabled";
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (log_decisions())
 | 
					    if (log_decisions())
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        char* pSql;
 | 
					        char* pSql;
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user