stackshareio/graphql-cache

undefined method `force=' for GraphQL::Cache:Module (NoMethodError)

afuno opened this issue · 2 comments

afuno commented

Rails 5.2.3 application with GraphQL 1.9.6.
The problem is in the configuration file.

I had to comment out the line.

GraphQL::Cache.configure do |config|
  config.namespace = 'GraphQL::Cache' # Cache key prefix for keys generated by graphql-cache
  config.cache     = Rails.cache      # The cache object to use for caching
  config.logger    = Rails.logger     # Logger to receive cache-related log messages
  config.expiry    = 5400             # 90 minutes (in seconds)
  # config.force     = false            # Cache override, when true no caching takes place
end
afuno commented

Removed from code: f35277b

Thanks!