Opencart 3.0.3.1 + Journal 3.0.46 no cache for manufacturer pages

serpent_driver

Well-Known Member
#21
already asked. but waiting for answer week or more is not right support, but I have not other choices
I you want to get support, you need to open a support ticket.
https://store.litespeedtech.com/store/clientarea.php

like I write early, the last version of LSCache for Opencart 1.3.1 added support for Journal theme Separate Mobile View for tablet
This version has no special support for Journal to detect devices. It is a universal function for mobile detection, but with different logic as Journal.

Mobile detection in LiteSpeed cache plugin for Opencart isn't synchronised with mobile_detection library. This library can differentiate between cell phones and tablets, but LiteSpeed vary cache control can't, because there is only 1 cache control define for cell phones AND tablets. That's why it doesn't work correctly.

Btw. this library for device detection is outdated. Last update was released 2 years ago and is fault tolerant. In my mind mobile detection in LiteSpeed cache plugin for OpenCart should be complete new developed.
 

AndreyPopov

Well-Known Member
#22
This version has no special support for Journal to detect devices. It is a universal function for mobile detection, but with different logic as Journal.
I'm not sure, but I think that:

[Update]mobile_detect.php add more device support, .htaccess detect more mobile http_user_agent, separate tablet cache copy from mobile cache copy according to journal theme

says something another?

and also adding this code to lscache.php

Code:
        if($detect->isTablet()){
            return 'tablet';
        } else if($detect->isMobile()){
            return 'mobile';
        } else {
            return false;
        }
isTablet() and isMobile() are Journal variables!
 

serpent_driver

Well-Known Member
#23
I'm not sure, but I think that:

Code:
        if($detect->isTablet()){
            return 'tablet';
        } else if($detect->isMobile()){
            return 'mobile';
        } else {
            return false;
        }
isTablet() and isMobile() are Journal variables!
If you don't use cache this code would work, but you use cache and if a URL is cached there is no dynamic function like PHP. That's why you need vary cache control to tell LiteSpeed which device with specific conditions is in use. LiteSpeed cache plugin for OpenCart have such vary cache control defines, but they are not the same like in library for mobile detection defined. Please read again what I already tried to explain. We are already in a loop.....

That means, open a support ticket and tell LiteSpeed support that mobile detection in cache plugin for OpenCart has a (big) dysfunction.
 

AndreyPopov

Well-Known Member
#24
problem with cache for manufacturer solved!!! by adding on Page Settings key

Code:
product/manufacturer/info
because original route query of Opencart is

Code:
index.php?route=product/manufacturer/info&manufacturer_id=7
 
Top