Answer the question
In order to leave comments, you need to log in
How does caching work in Bitrix?
Hello!
Tell me how caching works in Bitrix (business version)?
a specific list of products (everything is clear with the detailed product page)
example:
There is a product catalog 8 products
per page 4 products are displayed (total 2 pages)
users walk through the catalog, the pages are saved in the cache
and if I edit product number 8, which is on the second page, then when you go to the first page (which does not have this product), will the cache be recreated?
why am I all this:
There is a catalog of goods, in the list of goods there is a button to the basket and to the wish list, with standard catalog settings, this data is cached and it turns out how not to mark for a particular user, there is a product in the basket or in the wish list. The data goes to the cache and it is shown to another user that the product of the type is in the basket. Also, depending on the user group, some products are shown or hidden. For this I did this:
<?$APPLICATION->IncludeComponent("bitrix:catalog", "", array(
"USER_DATA" => $arUserData,
),
false
);?>
"CACHE_TYPE" => "A",
"CACHE_TIME" => "36000000",
"CACHE_FILTER" => "Y",
"CACHE_GROUPS" => "Y",
Answer the question
In order to leave comments, you need to log in
in the catalog, each product has a button or link to buy - add class='product_ajax_id_product'
on the page there is a small basket
$mas_elem - сюда собираешь товары (их id) - которые добавлены в корзину
$obj_count=CUtil::PhpToJSObject($mas_elem); - здесь у тебя js массив
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question