adspace


Explain rails caching levels.

Answer Posted / Ankush Soni

"Rails has multiple caching layers, including fragment caching, page caching, and action caching. Fragment caching stores specific parts of a view, while page caching stores the entire rendered page. Action caching stores the entire controller action response. You can enable these cache levels in your controllers by using the corresponding cache methods like 'cache_page', 'cache_action', and 'cache' to store fragments."

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the current version of ruby on rails?

948