M
M
Maxim Sivakon2019-07-08 09:39:25
1C-Bitrix
Maxim Sivakon, 2019-07-08 09:39:25

How to force a component to be cached?

In the .parameters.php file, there is such a code fragment for connecting the cache.

"CACHE_TIME" => array("DEFAULT"=>36000000),

When refreshing the page, it shows 22 queries, after refreshing the page again, it shows 8 queries. I understand that this component is half cached! 22 requests from where? if at me all it is transferred the 5 parameters! How can I make the correct cache setting for a component?
Or even how you can reduce the number of requests?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Nikolaev, 2019-07-08
@bystartline

In the .parameters.php file, there is such a code fragment for connecting the cache.

What you are talking about is the default parameters of the component . Those. this is a template for parameters.
Real caching settings are configured on the page where the component is used. Learn how the component is configured .
And the very fact that a caching-enabled component executes requests is normal: transformations before / after the caching area are probably used. And of course, do not forget that the component can be custom and caching may not be provided there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question