vue-storefront icon indicating copy to clipboard operation
vue-storefront copied to clipboard

When the cache is applied, a second rendering occurs

Open ideacco opened this issue 3 years ago • 0 comments
trafficstars

What is your question / Please describe your issue

Hi guys, I have a headache, according to the documentation, I integrated '@vue-storefront/redis-cache', and in a certain page, set the useCache() and addTags() functions and .

When I load the page for the first time, I find that the redis database has the data I just cached!

In order to verify that the cache is valid, I modified a part of the data directly in the redis server.

But when I re-refresh the same page, strange things happen, I see the redis data I just modified, but it disappears right away, and then it's back to the original data.

Am I missing something?

I suspect that after my cache takes effect, the render function is triggered again...

What version of Vue Storefront are you using?

2.5.6

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

ideacco avatar Aug 08 '22 09:08 ideacco