Answer the question
In order to leave comments, you need to log in
How to clear b_sale_viewed_product?
There is a table b_sale_viewed_product, weighing many GB, data from 19 years old, needs to be cleaned.
Cron doesn't work.
I want to clean my hands.
I found a method
I
create a typical page, I place the code there
\Bitrix\Main\Loader::includeModule('catalog');
\Bitrix\Catalog\CatalogViewedProductTable::clear(10);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question