jsonapi-utils icon indicating copy to clipboard operation
jsonapi-utils copied to clipboard

Use the cache with jsonapi_render.

Open GCorbel opened this issue 7 years ago • 1 comments

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".

GCorbel avatar Feb 17 '18 18:02 GCorbel

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 :-)

tiagopog avatar Feb 19 '18 01:02 tiagopog