I
I
I'm Yoda2019-02-23 21:09:25
1C-Bitrix
I'm Yoda, 2019-02-23 21:09:25

How to get updated information with caching enabled every time a page is accessed?

Hi all!
Tell me how to get updated information correctly when accessing a page with caching enabled?
1. There is an element ib;
2. There is HL;
HL stores files uploaded by the user related to the ib element. In result_modifier.php I get info from HL. On the ib element page, you need to update information about uploaded files.
Tell me how to do it right and where to start?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya, 2019-02-24
@Anadi

Much depends on the design layout.
If the layout visually allows, move the code from result_modifier.php to the detail.php file of the bitrix:news complex component template (or to a similar file if you use bitrix:catalog). This file is not cached.

A
Alexey, 2019-02-24
@AlexeyCaTHaR

And you can reset the cache by tag when updating hl elements

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question