Jump to content

Prestashop 1.7.5 homepage token problems


Recommended Posts

Hello,
I have some problems with the featured products on my homepage. When I login with some user account and go back to the mainpage, I can add the products which are displayed in the featured products module. But when I logout and login with another account, I can't add products from the featured products on my homepage.
As far I could see, the token stay's the same from my previous account. After I cleared the cache, the token equals with the current user account.

So, how can I clear the cache or change something so that the featured products adds the current token from the account which I am logged in to?
I also notice that more modules have this problem. Is this a setting or why does it do that?

Thanks!

Paul

Link to comment
Share on other sites

  • 11 months later...
  • 1 month later...

Hello,

We have exactly the same issue, we disabled the cache but its not a good solution.

A better solution was to modify the function renderWidget of our module. 

we replaced :

return $this->fetch($this->templateFile, $this->getCacheId('ps_specials'));

by 

return $this->fetch($this->templateFile);

And since  we removed the cahche Id everythings is working fine. 

Edited by adzary (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...