Caching Issue after Purchase

zhsanj7

Active Member
#1
Hi LiteSpeed Team,
It feeling very good to use Litespeed cache. But Im getting two issue after enable your Module on Opencart.
1) Every time need to re-load or caching specific product page and Category page after a Complete order.
2) After login into customer section it showing not login even though logged. If I clicked any product and go to homepage then show Im logged in.

Thanks
 

AndreyPopov

Well-Known Member
#2
what version of LiteSpeed installed on host?

LSWS - LiteSpeed Web Server?
OLS - OpenLteSpeed ?

what version of Opencart?
what version of LSCache plugin?
 

AndreyPopov

Well-Known Member
#6
When customer login with mobile no, after login it shows not logged yet.
are you using SEO urls? or other Rewrite Rules in .htaccess?

check:

- are you uncomment (enable) in .htaccess LSCache Rewrite Rules
- that LSCache Rewrite Rules in .htaccess must be before SEO or other Rewrite Rules

P.S. what PHP version you use?
 

AndreyPopov

Well-Known Member
#8
Using SEO url's
Added htaccess file in txt mood.

all LSCache Rewrite rules must be before Opencart SEO
Code:
# SEO URL Settings
with [L] flag at end.

[L] - means that all others rules after rule with [L] NOT executed!


you NOT enable LSCache Rewrite Rules for mobile devices - all of they commented!

remember! you must uncomment LSCache Rewrite Rules in .htaccess and enable in plugin GUI only if you have different desktop and mobile views of site!
 

zhsanj7

Active Member
#9
I haved edited this part as bellow:

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule [L] ^sitemap.xml$ index.php?route=extension/feed/google_sitemap
RewriteRule [L] ^googlebase.xml$ index.php?route=extension/feed/google_base
RewriteRule [L] ^system/storage/(.*) index.php?route=error/not_found
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

But Still Same issue. Logged but it shows not logged yet. I have added htaccess.txt file. Please help me to proper setting. No one can solve this LSCache issue.

Demo:
https://demo.sonamoni.com/admin
User: sonamoni.com
Pass: snN65339$

Thanks
 

Attachments

AndreyPopov

Well-Known Member
#10
I haved edited this part as bellow:
RewriteRule [L] ^sitemap.xml$ index.php?route=extension/feed/google_sitemap
this is WRONG!!!!!

not move [L] flag!!!!

move ALL LINES of LiteSpeed section BEFORE # SEO URL Settings !!!!!

RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] also contain [L] flag!!!


and ;leas answer: are use different dektop and mobile views on your site?
 

zhsanj7

Active Member
#11
Yes desktop and mobile are little different view. For that I have enabled Mobile view Cache. Could you please edit that htaccess file and paste here.
 

zhsanj7

Active Member
#13
Hi, Many thanks for your Upated htaccess file. But Sir, Im still getting same issue (Attached). Whenever logging it shows Not Logged but it actually login. If I check another page, product or category then it shows logged in. Kindly check attached Screenshot.

Attached settings Screenshot also.
 

Attachments

zhsanj7

Active Member
#16
but it working better from before. Where before unable to show User in home page but now if I refresh one or two time then it showing logging. But not auto.

Settings attached
 

Attachments

AndreyPopov

Well-Known Member
#18
Where before unable to show User in home page
my hoster is OLS (OpenLiteSpeed) server and I disable all separate options for loggin-in users.

not help with these options.

may be in some cases separate cache for loggin-in users. are more usefull, but I not see any reasons to use separate cache for loggin-in users. on standard Opencart.
 
Top