lscache-opencart icon indicating copy to clipboard operation
lscache-opencart copied to clipboard

curl option for fast recache and small lscache size

Open AndreyPopovNew opened this issue 2 years ago • 0 comments

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.

curl_setopt($ch, CURLOPT_ENCODING, "");

must be added in

/catalog/controller/extension/module)/lscache.php

after this:

curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);

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:

Пряжа высокого качества Турции, Италии в широчайшем ассортименте - интернет-магазин "Пряжа-shop"

.............. Copyright © 2019-2022, Priazha-shop, All Rights Reserved

Этот сайт использует файлы cookies.

now: lscache_encoding

but lscache work!!!

AndreyPopovNew avatar May 31 '22 10:05 AndreyPopovNew