graphql-cache icon indicating copy to clipboard operation
graphql-cache copied to clipboard

A caching plugin for graphql-ruby

Results 13 graphql-cache issues
Sort by recently updated
recently updated
newest added

**Describe the bug** If I enable the new 1.9 Interpreter as documented here: https://graphql-ruby.org/queries/interpreter.html no caching occurs. **gem version:** ``` graphql (1.9.15) graphql-cache (0.6.0) ``` **To Reproduce** Add these lines...

bug

**Is your feature request related to a problem? Please describe.** I am using `graphql` with `graphql-cache`. But now I want to invalidate the cache if my object is changed **Describe...

enhancement

**Is your feature request related to a problem? Please describe.** We were testing out graphql-cache installed from Rubygems and found out graphql-batch wasn't compatible with it. We ended up [writing...

enhancement

I have a scenario where I want my cache to never expire, letting Redis deal with the less frequently used keys in case memory reaches cap. In my current case...

enhancement

Problem ------- Connection cache does not work with `ActiveRecord`. Cause (for defects/bugs) ------------------------ For ActiveRecord [this](https://github.com/stackshareio/graphql-cache/commit/f3cfd7c9c51707581691e6a84fa0d55a5c5e6b91#diff-50d056c4fa314ae2376a928738af8445R26) returns `GraphQL::Relay::RelationConnection` where `nodes` is instance of `ActiveRecord_Associations_CollectionProxy`. This is because [ActiveRecord is lazy...

**Describe the bug** A custom cache key cannot be used on a root-level field because it is skipped when there is no parent object. **gem version:** `>= 0.6` **graphql-ruby version:**...

bug

I noticed in testing that the cache sometimes automatically gets updated after insertions, but i don't know when the field in the cache gets updated, and when it doesn't. For...

**Is your feature request related to a problem? Please describe.** This project looks almost perfect for addressing some hotspots in our code! **Describe the solution you'd like** I would like...

enhancement

I tried to cache the title: ```ruby class Types::TagType < Types::BaseObject field :id, ID, null: false field :title, String, null: false, cache: true end ``` But in the console I...

question

We may want to document this in the README: ```ruby field :some_field, String, cache: { key: ->(obj) { "#{obj.id}123blah" } } ```