Personal cache vs Memcache?

I have a personal caching class that can be seen here (based on WordPress):
http://pastie.org/988427

I recently learned about memcache, and he told memcache EVERYTHING:
http://highscalability.com/blog/2010/5/17/7-lessons-learned-while-building-reddit-to-270-million-page.html

My first thought was only to save my class with current functions and use memcache instead - are there any drawbacks to this?

The main difference that I see is that memcache stays on the server from page to page, and mine for loading on one page. The problem that I see arises, and this with any system, is that they are dynamic. They change all the time. Are its search results, visible products, etc. Etc. If all this is cached, won't it create a problem?

Is there any way to handle this? Obviously, if something returns the same results every time it is cached, but that’s why I do it based on the loading of each page. I'm sure there is a way to handle this, or is the cache time usually set between 5 minutes and an hour?

+3
source share
1 answer

, , , . memcached, . -. memcached . html-, , , (http://varnish-cache.org/).

+1

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


All Articles