method

configure_query_cache!

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::QueryCache
configure_query_cache!() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 182
        def configure_query_cache!
          case query_cache = pool.db_config.query_cache
          when 0, false
            return
          when Integer
            @query_cache_max_size = query_cache
          when nil
            @query_cache_max_size = DEFAULT_SIZE
          else
            @query_cache_max_size = nil # no limit
          end

          if pool.query_cache_enabled
            enable_query_cache!
          end
        end
Register or log in to add new notes.