OpenCart LS Module Scroll Mobile Issue

serpent_driver

Well-Known Member
#61
Again, again and again. It is not possible to only check if a page is cached or not. Every check is a HTTP request and a request causes to cache a page! You can check it by your own. Purge cache of your homepage and run this curl command. If done check cache status:

Code:
curl -k -I -s -X GET -H "User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.3683.47 Safari/537.36" "Accept-Encoding: gzip, deflate, br" "https://www.priazha-shop.com/"
 

AndreyPopov

Well-Known Member
#62
Again, again and again. It is not possible to only check if a page is cached or not. Every check is a HTTP request and a request causes to cache a page! You can check it by your own. Purge cache of your homepage and run this curl command. If done check cache status:

Code:
curl -k -I -s -X GET -H "User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.3683.47 Safari/537.36" "Accept-Encoding: gzip, deflate, br" "https://www.priazha-shop.com/"
again, again and again-again - you 3454 requests NOT create or modify ANY of cache file!

your
Code:
curl -k -I -s
is same to method that used Opencart LSCache Plugin

may be your "superfast method" in two keys?

Code:
-s, --silent

Silent or quiet mode. Do not show progress meter or error messages. Makes Curl mute. It will still output the data you ask for, potentially even to the terminal/stdout unless you redirect it.
Code:
-k, --insecure

(TLS SFTP SCP) By default, every secure connection curl makes is verified to be secure before the transfer takes place. This option makes curl skip the verification step and proceed without checking.
 

AndreyPopov

Well-Known Member
#65
but dramatically increased only speed of checking if cache exist (cache already generated).
when I purge cache and start generate new cache - speed grows nearly 3 times - ~3000 urls per hour.

new_cache_generate_speed.jpg

this new recache for three UAs - 941*3 = 2823 url per hour
faster, but not 10,000 per hour or your fake 100,000 per hour


but GREAT THANKS for three times faster. Now I can make full recache of my site during 1 day (previously 3 days for full recache)
it's cool.
 
Last edited:

AndreyPopov

Well-Known Member
#66
build cache
more simple pages like categories:
Code:
155/1020/2/3660 https://www.priazha-shop.com/alize-superlana-maxi?sort=p.date_added&order=ASC&page=9 : 200
1175*3=3525 pages per hour
 

AndreyPopov

Well-Known Member
#67
product pages + two simple Journal popups (QuickView and Options)

Code:
67/612/3/45940 https://www.priazha-shop.com/alize-aura-383 : 200
68/612/3/45940 https://www.priazha-shop.com/index.php?route=journal3/product&product_id=4061&popup=quickview : 200
69/612/3/45940 https://www.priazha-shop.com/index.php?route=journal3/product&product_id=4061&popup=options&product_quantity=1& : 200
(612 + 612 + 70) * 3 = 3882 links per hour

almost 4000 links per hour ;)
 

AndreyPopov

Well-Known Member
#68
I'm in sock!!!

size of newly generated cache with
Code:
 curl_setopt($ch, CURLOPT_ENCODING, "");
in 10 times less!!!!!!!!
now double check that all work as must.
 
Top