I
I
IliaMal2020-11-13 10:06:51
1C-Bitrix
IliaMal, 2020-11-13 10:06:51

Cached components are not displayed correctly?

Hello.

Added the "You viewed" component to the product card (bitrix:catalog.viewed.products)
When the cache is reset to zero, the template is displayed normally:
5fae301c8290f161060804.png

But if you wait until the cache appears, it will look like this:
5fae3075e863a779407768.png

After resetting the cache, everything is normal again.

What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
smilingcheater, 2020-11-13
@IliaMal

1. where exactly did you add the connection of this component - inside the template of the detail page component, or in element.php of the complex catalog component?
2. Show the connection code for this component. Have you passed the 4th parameter to the component connection $APPLICATION->IncludeComponent - a reference to the parent component?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question