Answer the question
In order to leave comments, you need to log in
Slow php-fpm working?
After deleting upload/resize_cache for the first time, the product card that is opened for the first time works out for about a minute.
At this time, the percentage is loaded by php-fpm at 100%. That is, the creation of the cache is very long.
I thought it had to do with resizing the image. I removed the pictures from the product in general (in the announcement too). I clear the cache again. I reopen the page. 30 seconds.
Enabled slow log to turn on after 20 seconds (by the way, it doesn't matter if 5 or 60 output is the same) in the php-fpm pool.
[05-Oct-2019 17:38:12] [pool www] pid 32313
script_filename = /var/www/site/public_html/bitrix/urlrewrite.php
[0x00007fbea0e1fe80] imageconvolution() /var/www/site/public_html/bitrix/modules/main/classes/general/file.php:2415
[0x00007fbea0e1fd50] ApplyImageFilter() /var/www/site/public_html/bitrix/modules/main/classes/general/file.php:2335
[0x00007fbea0e1faf0] ResizeImageFile() /var/www/site/public_html/bitrix/php_interface/include/ccustomfile.php:125
[0x00007fbea0e1f8c0] ResizeImageGetJpg() /var/www/site/public_html/bitrix/templates/site_redesign_052018/components/bitrix/catalog.top/more_products/result_modifier.php:21
[0x00007fbea0e1f620] [INCLUDE_OR_EVAL]() /var/www/site/public_html/bitrix/modules/main/classes/general/component_template.php:882
[0x00007fbea0e1f550] __IncludeMutatorFile() /var/www/site/public_html/bitrix/modules/main/classes/general/component_template.php:789
[0x00007fbea0e1f440] IncludeTemplate() /var/www/site/public_html/bitrix/modules/main/classes/general/component.php:735
[0x00007fbea0e1f390] showComponentTemplate() /var/www/site/public_html/bitrix/modules/main/classes/general/component.php:683
[0x00007fbea0e1f300] includeComponentTemplate() /var/www/site/public_html/bitrix/modules/iblock/lib/component/base.php:4147
[0x00007fbea0e1f2a0] loadData() /var/www/site/public_html/bitrix/modules/iblock/lib/component/elementlist.php:1167
[0x00007fbea0e1f250] loadData() /var/www/site/public_html/bitrix/modules/iblock/lib/component/base.php:4126
[0x00007fbea0e1f1f0] initialLoadAction() /var/www/site/public_html/bitrix/modules/iblock/lib/component/base.php:4311
[0x00007fbea0e1f190] call_user_func() /var/www/site/public_html/bitrix/modules/iblock/lib/component/base.php:4311
[0x00007fbea0e1f110] doAction() /var/www/site/public_html/bitrix/modules/iblock/lib/component/base.php:4329
[0x00007fbea0e1f090] executeComponent() /var/www/site/public_html/bitrix/modules/main/classes/general/component.php:638
[0x00007fbea0e1ef90] includeComponent() /var/www/site/public_html/bitrix/modules/main/classes/general/main.php:1038
[0x00007fbea0e1edd0] IncludeComponent() /var/www/site/public_html/bitrix/templates/site_redesign_052018/components/aplix/catalog/.default/element.php:146
[0x00007fbea0e1ecd0] [INCLUDE_OR_EVAL]() /var/www/site/public_html/bitrix/modules/main/classes/general/component_template.php:725
[0x00007fbea0e1eb50] __IncludePHPTemplate() /var/www/site/public_html/bitrix/modules/main/classes/general/component_template.php:820
[0x00007fbea0e1ea40] IncludeTemplate() /var/www/site/public_html/bitrix/modules/main/classes/general/component.php:735
[0x00007fbea0e1e990] showComponentTemplate() /var/www/site/public_html/bitrix/modules/main/classes/general/component.php:683
[0x00007fbea0e1e900] includeComponentTemplate() /var/www/site/public_html/bitrix/components/aplix/catalog/component.php:149
[0x00007fbea0e1e760] [INCLUDE_OR_EVAL]() /var/www/site/public_html/bitrix/modules/main/classes/general/component.php:594
[0x00007fbea0e1e630] __includeComponent() /var/www/site/public_html/bitrix/modules/main/classes/general/component.php:653
[0x00007fbea0e1e530] includeComponent() /var/www/site/public_html/bitrix/modules/main/classes/general/main.php:1038
[0x00007fbea0e1e370] IncludeComponent() /var/www/site/public_html/catalog/index.php:307
[0x00007fbea0e1e2c0] [INCLUDE_OR_EVAL]() /var/www/site/public_html/bitrix/modules/main/include/urlrewrite.php:159
[0x00007fbea0e1e0a0] [INCLUDE_OR_EVAL]() /var/www/site/public_html/bitrix/urlrewrite.php:2
Answer the question
In order to leave comments, you need to log in
This is the cache of resized images and it takes a long time to generate it. Possibly a slow disk subsystem. Perhaps the pictures are huge + watermark overlay.
Look at the page there are pictures shown from upload/resize_cache
In general, open the template and result_modifier.php of this component and see what kind of code it is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question