Caching in Rails
Exploration of various caching types and where to store it!
There could be many reasons for applications to respond slowly. Caching is one of the effective ways to improve performance issues as well as reduce database load by reducing query hits. Caching is the technique in which some code gets stored temporarily so as to retrieve it later for fast operation.
In Rails, there are various types of caching techniques as well as various places to store the cache data. We will be focusing mainly on two sections to understand the caching in Rails as below,
Since a single blog could take quite a lot of length, let’s try to understand each section by summing it up in a short and precise manner separately.