D
D
dev4002016-04-18 21:39:36
PHP
dev400, 2016-04-18 21:39:36

Question about connecting a caching system?

Is it worth it to do what is described in this article? ruseller.com/lessons.php?id=1555&rub=37
And please give links to worthy materials on this topic, since I have 0 knowledge, I can’t determine what is good and what is bad

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Shevelev, 2016-04-18
@dev400

Read optimization.guide and here's some theory for you: You
can cache:
You can cache in files:
You can cache in the database:
You can also:
These are two opposing approaches that, if desired, can be mixed within the same project.
The cache can be stored:
You can combine different types of caching for different data. You can cache only the result of the work of functions (calculations, data), and do not touch the templates, you can do it together with templates , but then each change in the templates will reset the entire cache where it participates.
If you are using CMS/CMF - look at ready-made plugins for caching. If you do not have a sharing-hosting with a mini-site - take care of profiling (xhproof) and monitoring, this will help you understand where and what to cache.
It is also worth considering bytecode caching :
It is worth reading this article:
Drupal code execution speed comparison for PHP 5.3-5.6 and 7.0. "Battle of code optimizers" apc vs xcache vs opcache https://habrahabr.ru/post/264775/
Also worth it:
You can read here:

  • What you wanted to know about HandlerSocket but couldn't google , Sergey Averin - https://www.youtube.com/watch?v=qHqdhJ9ziik
  • Gentoo Overlay with HandlerSocket , not updated for a long time but seems to work - https://github.com/mantyr/overlay-gentoo-flower
  • HS cache , also not updated for a long time, but as an example it will do - https://github.com/mantyr/php-hscache
  • PHP Extension for HandlerSocket, does not contain the latest commits, but probably the only place where there is an exact description of all methods and incoming parameters, https://github.com/mantyr/php-ext-handlersocketi

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question