Caching is Best Practiced at Merb

I'm a beginner at Merb, so want to know what are the best data caching methods? For example, I have a page that shows a list of books that do not change very often, so I'm looking for a way to cache data. There may be two options: cache data from db or cache all page (html).

So, are there any tools for quick and easy? Thanks

+3
source share
2 answers

I think the most important caching practice is not to worry about it until you need it. Implementing caching before loading your server requires a time confusion that you could use to improve other areas of your code base, add features, etc.

+1
source

Caching is one of those things that is simpler if you at least know what will happen and how. Although this is not Merb, my first stop would be to scale rails from RailsCasts. Everything that he shows can be done in Merb.

I would suggest using page caching from your description if I were you.

0
source

Source: https://habr.com/ru/post/1709832/


All Articles