J
J
johan19972021-02-03 14:32:04
1C-Bitrix
johan1997, 2021-02-03 14:32:04

Consider user group when caching self-written bitrix component?

There is a self-written menu component, you need to take into account the user group when caching, CACHE_GROUPS = 'Y' does not work, solutions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
no_one_safe, 2021-02-03
@no_one_safe

Add the group ID to the cache hash. Profit.

A
Alexey Emelyanov, 2021-02-03
@babarun

You can also add the group id to the component settings and then it will be automatically added to the cache key

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question