DEV Community

Dainius
Dainius

Posted on

What is the caching convention for Rails API app?

I feel that there is no clear convention on caching JSON endpoints in Rails. JBuilder cache is not even mentioned on Rails Caching guide(https://guides.rubyonrails.org/caching_with_rails.html). JBuilder docs suggest a third party gem for caching collections. Quite a few guides that mention caching and rails ends up with advertising a new gem that the author wrote. Am I missing something? What is your caching strategy for JSON endpoints in Rails?

Top comments (0)