May 2025
Intermediate to advanced
270 pages
6h 55m
English
Once upon a time, when Rails was in version number 3, the framework provided other, more powerful caching methods out of the box. Too “powerful” in fact: it was decided that they were too prone to cause bugs, and they were eventually deprecated in version 4, circa 2013. Still, if you understand what they were, you can better see the trade-offs that you face when using caching. These two deprecated techniques were page caching and action caching.
In page caching, the content of a response (typically, a rendered view) is stored in a file. The next time that a request to that same endpoint hits the web server, the web server will return the content of that file without even passing the request to the Rails ...
Read now
Unlock full access