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

Use the cache with jsonapi_render. #84

Open
GCorbel opened this issue Feb 17, 2018 · 1 comment
Open

Use the cache with jsonapi_render. #84

GCorbel opened this issue Feb 17, 2018 · 1 comment

Comments

@GCorbel
Copy link

GCorbel commented Feb 17, 2018

I noticed than this doesn't use the cache :

  def index
    jsonapi_render json: ProjectGroup.all
  end

But this does :

  def index
    process_request
  end

Is there a way to use the cache for both? Should I cache records myself? It can be useful to have this "built-in".

@tiagopog
Copy link
Owner

Yes, initially the idea was to let the cache implementation to be a developer's choice. But I will reconsider this point since caching usually is not related to the app's business logic.

Thanks for the feedback :-)

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

No branches or pull requests

2 participants