I
I
I'm Yoda2017-06-12 07:00:22
1C-Bitrix
I'm Yoda, 2017-06-12 07:00:22

How to solve the problem with sorting goods when caching is enabled?

Hi all!
Added sorting by prices, name, new products, etc. on the site. Ajax included. Everything works great if caching and access rights are disabled. If enabled, then sorting starts working only when the cache is reset and only under the admin panel. Who has experienced this? Tell me where to dig in this case?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Gritsuk, 2017-06-12
@Anadi

How is sorting done? If through the sorting parameters of the catalog.section component in the catalog complex component template (section.php and sections.php files), then there should not be such a problem. If you do sorting using php in the catalog.section template (result_modifier.php or template.php files), then this is not the right solution, because. the data is cached there.

A
Andrey Nikolaev, 2017-06-15
@gromdron

You must enter the sort data in the cached area key

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question