Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching responses #691

Open
zserg84 opened this issue Jun 30, 2020 · 1 comment
Open

Caching responses #691

zserg84 opened this issue Jun 30, 2020 · 1 comment

Comments

@zserg84
Copy link

zserg84 commented Jun 30, 2020

Q A
Bug report? no
Feature request? yes
BC Break report? no
Version/Branch 0.13.2
--

Hi guys. I have endpoints whose results rarely change. And I would like to cache this results so as not to torment the database with every query. Is this possible in the current implementation?

@zserg84 zserg84 changed the title Response cache Caching responses Jun 30, 2020
@Vincz
Copy link
Collaborator

Vincz commented Jul 6, 2020

Hey @zserg84 !
At the moment, there is no built-in cache system. It shouldn't be to hard to implement with events I think.
Check this page : https://github.com/overblog/GraphQLBundle/blob/master/docs/events/index.md
By hooking into the pre execute to check the cache and in the post to actually cache the result for later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants