Clear 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!
yong
Posts: 43
Joined: 10 Apr 2019, 12:55

Clear cache

Post by yong » 12 Jul 2019, 05:40

Hello ! i have a problem with cache into components ; it's nice to cache some components but i have a component which normally is happen to change when i do some action but it don't ( in my case it is component body with catalog items) ; how can i clear cache in some conditions in the controller of myextension ;
look that i used this->addMetaItems(item ...) but it seem like i don't understand how it work !
Need explanations please !

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

Re: Clear cache

Post by aimeos » 12 Jul 2019, 09:40

The component that cache content has a modifyBody() method which is used to replace dynamic content from the cache fragments. What exactly do you need to update and when?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply