in long and hard discussion with serpent_driver and researching parameters of his "superfast recaching method" finding really "magic" option for curl in crawler algorithm.
must be added in
catalog/controller/extension/module/lscache.php
after this:
after adding this options:
- speed of recache increase up to 3 times
- size of already generated cache decrease up to 10 times
file of cache after lscache header now contain not full html code of cached page like:
now:
but lscache work!!!
P.S. developers add this option to plugin!!!!
https://github.com/litespeedtech/lscache-opencart/commit/d7a085e56132308eec522d9b9d332e163163b9b2
PHP:
curl_setopt($ch, CURLOPT_ENCODING, "");
catalog/controller/extension/module/lscache.php
after this:
PHP:
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
- speed of recache increase up to 3 times
- size of already generated cache decrease up to 10 times
file of cache after lscache header now contain not full html code of cached page like:
HTML:
<!DOCTYPE html> <html dir="ltr" lang="ru" class="desktop win chrome chrome101 webkit oc30 is-guest route-common-home store-0 skin-1 desktop-header-active mobile-sticky layout-1 wf-vollkorn-n7-active wf-vollkorn-n4-active wf-hindmadurai-n7-active wf-hindmadurai-n4-active wf-active flexbox no-touchevents" data-jb="14218c54" data-jv="3.1.8" data-ov="3.0.3.1" style=""><head typeof="og:website"><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Пряжа высокого качества Турции, Италии в широчайшем ассортименте - интернет-магазин "Пряжа-shop"</title><base href="https://www.priazha-shop.com/">
..............
<span class="links-text">Copyright © 2019-2022, Priazha-shop, All Rights Reserved</span>
</a></li></ul></div></div></div></div></div></div></div></footer></div><div class="notification-wrapper notification-wrapper-bottom"><div class="module module-notification module-notification-137 notification" data-options="{"position":null,"title":"","cookie":"e0d3c1b5"}">
<button class="btn notification-close">OK</button><div class="notification-content"><div><div class="notification-title"></div><div class="notification-text">Этот сайт использует файлы cookies.</div></div></div></div></div> <script src="https://static.priazha-shop.com/catalog/view/theme/journal3/assets/0d6cd2a9a1e51254b9f0317c0826cc05.js?v=14218c54"></script> <div class="scroll-top">
<i class="fa fa-angle-up"></i></div></body></html>
but lscache work!!!
P.S. developers add this option to plugin!!!!
https://github.com/litespeedtech/lscache-opencart/commit/d7a085e56132308eec522d9b9d332e163163b9b2
Last edited: