A
A
alexander_chn2017-08-02 18:13:44
caching
alexander_chn, 2017-08-02 18:13:44

Why does scrolling work in the component only after I update its cache (Bitrix)?

Hello!
The site is based on Bitrix, on the main page there is a bitrix:catalog.section.list component that displays categories prntscr.com/g3ha9e
But scrolling does not work on it. And it starts working only when I log in as administrator and update the component cache in edit mode. I have already done clearing the cache files, but the situation has not changed. What could be the snag?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Nikolaev, 2017-08-02
@alexander_chn

The most probable problem: you connect the scrolling script in template.php itself.
So it turns out that the script is there when the cache is reset and the scrolling works, and when the cache is already built and there is no entry in template.php, the script is not connected.
Put template.php on pastebin.com and I can tell you how to fix it

A
alexander_chn, 2017-08-02
@alexander_chn

posted, here is a link to the code https://pastebin.com/3vzs3hTv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question