Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Cache miss: (GraphQL::Cache:Tag:title:Tag:tags/10-20190522154014980856) #60

Open
afuno opened this issue Jun 6, 2019 · 2 comments
Open
Assignees
Labels
question Further information is requested

Comments

@afuno
Copy link
Contributor

afuno commented Jun 6, 2019

I tried to cache the title:

class Types::TagType < Types::BaseObject
  field :id, ID, null: false
  field :title, String, null: false, cache: true
end

But in the console I get a lot of messages of this type:

Cache miss: (GraphQL::Cache:Tag:title:Tag:tags/10-20190522154014980856)

How to fix it?

@thebadmonkeydev thebadmonkeydev self-assigned this Jul 24, 2019
@thebadmonkeydev
Copy link
Collaborator

Those are debug level log messages that the gem emits for easy distinction of what resolved the field in question. You can eliminate the messages by setting your Rails log level to something higher than DEBUG. That's assuming your question is just about the log messages themselves. If you're having issues with the cache always missing that's another issue. Does the message persist on the second resolution of the field (i.e. run the query in the console again)? Or does it say Cache hit: (GraphQL::Cache:Tag:title:Tag:tags/10-20190522154014980856)

@thebadmonkeydev thebadmonkeydev added the question Further information is requested label Jul 24, 2019
@thebadmonkeydev thebadmonkeydev removed their assignment Aug 21, 2019
@thebadmonkeydev
Copy link
Collaborator

@afuno Did my previous comment answer your question?

@thebadmonkeydev thebadmonkeydev self-assigned this Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants