Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That gives me a 500 error.

At any rate, I think many rails developers should refresh their knowledge of rails caching: https://guides.rubyonrails.org/caching_with_rails.html.

For example using the data from the db (model instance) as cache key is quite effective solution for being able to deliver most view/fragments from cache.

The downside is that some care must be taken with keys, which parts are cached (eg: logged in pages).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: