GordonLesti / Lesti_Fpc

Simple Magento Fullpagecache
https://gordonlesti.com/lesti-fpc-documentationversion-1-4-5/
Other
358 stars 159 forks source link

Last page of previous customer gets cached after logout and is shown to next customer after login #329

Open Lez-2 opened 6 years ago

Lez-2 commented 6 years ago

I recently started using Lesti FPC in one of my M1.9 sites and for the most part it works pretty well.

But I came accross an issue with the logged in customer session being cached and provided to other logged in customers.

To better explain the issue, let's say there are 2 customers.

The 1st one logs in and searches for "PANTS" and gets some results, but then loggs out and leaves the site.

Then the 2nd customer visits some product page (e.g. "T-SHIRT") and then logs in.

After logging in, he should be redirected back to the T-SHIRT product, but he's instead being redirected to the search results of the previous logged in customer. So I presume the referer url gets cached on the customer login form.

I've tried setting the customer_form_login block as lazy or dynamic and tried setting a refresh action customer_account_loginPost, but it's not working.

Any ideas what causes this issue or how to solve it?