OpenLiteSpeed 1.7.14
Opencart 3.0.3.1
Journal Theme 3.1.8
LSCache plug-in 2.3.0
https://www.priazha-shop.com/
store contains 8200 products
for each product
/index.php?route=product/product&product_id=41
/index.php?route=product/product&path=20_27&product_id=41
/index.php?route=product/product&manufacturer_id=8&product_id=41
Journal Theme adds
/index.php?route=journal3/product&product_id=41&popup=quickview (QuickView popup)
/index.php?route=journal3/product&product_id=41&popup=options&product_quantity=1& (choose options price)
8200*5=40100 requests per UserAgent (desktop or mobile or safari browser views)
I disable in crawler algorithm
to increase crawler speed
but on my hosting only around 600 requests per hour completed.
40100/600 = 66 hours!!! 3 days!!!!
full recache of site is 3 days per UserAgent.
I use advanced crawler algorithm and crontab tasks to complete full recache.
Desktop View
Tablet View
Mobile View
Desktop View Safari (required separate cache because Safari not support webp image format)
Tablet View Safari (required separate cache because Safari not support webp image format)
Mobile View Safari (required separate cache because Safari not support webp image format)
Desktop Bot (required separate cache because not accept cookies)
Mobile Bot (required separate cache because not accept cookies)
8*3 = 24 days
in my conditions real time is 18 days for full recache all UserAgents.
by default PublicCache TTL in settings is 1200000 - 13.9 days
I set PublicCache TTL in LSCache settings to 1814400 (21 days)
BUT..............
I find that lscache expired after 7-10 days !!!!
and I must again-again-again and again start full recache - infinitive process
in docs I read:
https://openlitespeed.org/kb/litespeed-cache-on-openlitespeed-without-plugins/
LScahe plug-in used .htaccess rewrite rules to separate caches.
if page not cached in header:
x-litespeed-cache-control: public,max-age=1814400
x-litespeed-cache: miss
when page ached in header only:
x-litespeed-cache: hit
please help explain an understand WHAT rules must be in .htaccess that lscache expired only after 1814400 secs (21 days) !!!!!!!!!
============================================
SOLUTION:
- my hoster store lscache in his system space
- and delete(clean) lscache folder when he wants (because space overflow). unexpected for me
- hard and long discussion with hoster support and developer with pointing to OLS LSCache Docs to store lscache in different folders
- hoster enable possibility to store lscache in my account file system
I'm happy 10 days lscache after crawling work
Opencart 3.0.3.1
Journal Theme 3.1.8
LSCache plug-in 2.3.0
https://www.priazha-shop.com/
store contains 8200 products
for each product
/index.php?route=product/product&product_id=41
/index.php?route=product/product&path=20_27&product_id=41
/index.php?route=product/product&manufacturer_id=8&product_id=41
Journal Theme adds
/index.php?route=journal3/product&product_id=41&popup=quickview (QuickView popup)
/index.php?route=journal3/product&product_id=41&popup=options&product_quantity=1& (choose options price)
8200*5=40100 requests per UserAgent (desktop or mobile or safari browser views)
I disable in crawler algorithm
PHP:
//usleep(round($diff));
//echo $diff . ' microseconds for one run' . PHP_EOL;
but on my hosting only around 600 requests per hour completed.
40100/600 = 66 hours!!! 3 days!!!!
full recache of site is 3 days per UserAgent.
I use advanced crawler algorithm and crontab tasks to complete full recache.
Desktop View
Tablet View
Mobile View
Desktop View Safari (required separate cache because Safari not support webp image format)
Tablet View Safari (required separate cache because Safari not support webp image format)
Mobile View Safari (required separate cache because Safari not support webp image format)
Desktop Bot (required separate cache because not accept cookies)
Mobile Bot (required separate cache because not accept cookies)
8*3 = 24 days
in my conditions real time is 18 days for full recache all UserAgents.
by default PublicCache TTL in settings is 1200000 - 13.9 days
I set PublicCache TTL in LSCache settings to 1814400 (21 days)
BUT..............
I find that lscache expired after 7-10 days !!!!
and I must again-again-again and again start full recache - infinitive process
in docs I read:
https://openlitespeed.org/kb/litespeed-cache-on-openlitespeed-without-plugins/
Notes
OpenLiteSpeed outputs a response header X-LiteSpeed-Cache: hit if a request is served from public cache.
OpenLiteSpeed outputs a response header X-LiteSpeed-Cache: hit,private if a request is served from private cache.
The LSCache hit rate is calculated based on all files served. Many of the files served by LSWS, like CSS or HTML, are intentionally not cached by LSCache. Because these files are included in the LSCache hit rate calculation, the hit rate may sometimes look much lower than one might expect.
You will not see a Cache-Control:max-age header when you use LSCache. Please be aware there are two different concepts: Cache-Control:max-age is a browser cache header. It is not for server-side cache. x-litespeed-cache-control: public,max-age=86400 is an LSCache control header, which will be seen when the cache plugin being used. When using a rewrite rule like [E=cache-control:max-age=120]to enable cache as instructed in this wiki, you won’t see the x-litespeed-cache-control header.
OpenLiteSpeed outputs a response header X-LiteSpeed-Cache: hit if a request is served from public cache.
OpenLiteSpeed outputs a response header X-LiteSpeed-Cache: hit,private if a request is served from private cache.
The LSCache hit rate is calculated based on all files served. Many of the files served by LSWS, like CSS or HTML, are intentionally not cached by LSCache. Because these files are included in the LSCache hit rate calculation, the hit rate may sometimes look much lower than one might expect.
You will not see a Cache-Control:max-age header when you use LSCache. Please be aware there are two different concepts: Cache-Control:max-age is a browser cache header. It is not for server-side cache. x-litespeed-cache-control: public,max-age=86400 is an LSCache control header, which will be seen when the cache plugin being used. When using a rewrite rule like [E=cache-control:max-age=120]to enable cache as instructed in this wiki, you won’t see the x-litespeed-cache-control header.
LScahe plug-in used .htaccess rewrite rules to separate caches.
if page not cached in header:
x-litespeed-cache-control: public,max-age=1814400
x-litespeed-cache: miss
when page ached in header only:
x-litespeed-cache: hit
please help explain an understand WHAT rules must be in .htaccess that lscache expired only after 1814400 secs (21 days) !!!!!!!!!
============================================
SOLUTION:
- my hoster store lscache in his system space
- and delete(clean) lscache folder when he wants (because space overflow). unexpected for me
- hard and long discussion with hoster support and developer with pointing to OLS LSCache Docs to store lscache in different folders
- hoster enable possibility to store lscache in my account file system
I'm happy 10 days lscache after crawling work
Last edited: