Products price and cache

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
dnll
Posts: 5
Joined: 07 Sep 2020, 16:38

Products price and cache

Post by dnll » 10 Apr 2021, 12:36

Hi,

I'm having cache troubles with the prices of the products. When I add/change/disable/enable a price, it's not updated on the frontend unless I empty the cache. By consequence, I've different prices depending on the view and language.

I wonder if there is a way to overcome this issue without disabling the cache. I've taken a look at the function modifyBody() but I don't know how can I use it for this purpose.

I'm using aimeos 2019.10 version with Laravel ^6.0 and PHP ^7.2.

Thanks a lot for your help.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: Products price and cache

Post by aimeos » 11 Apr 2021, 12:18

The content cache should be automatically cleared when you save the product by this decorator:
https://github.com/aimeos/ai-admin-jqad ... /Cache.php

Please note that 2019.10 isn't supported any more and you should upgrade to a later version. Alternatively, the Aimeos company offers extended LTS support up to five years: https://aimeos.com/support#c428
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

dnll
Posts: 5
Joined: 07 Sep 2020, 16:38

Re: Products price and cache

Post by dnll » 12 Apr 2021, 14:09

My bad!!
Actually, I've had overridden the product decorators configuration when adding my own decorator and I didn't notice that I was missing the Cache decorator.

Thank you so much for your help and fabulous work.

Post Reply