- Предыдущая
- 1
- 2
- Показаны 16-24 из 24
Установил memcache, включил cache, не помогает
Отладка включена
— Ошибки PHP ( critical_user_page, trace = 5 )
— Контрольные точки ( trace = 3 )
Кстати, у Вас отсутствует файл стилей отладки \templates\ваш_шаблон\css\debug.css или он не подключается в Вашем шаблоне. При наличии и подключении этого файла вывод отладки будет оформлен более наглядно, в том числе будут подсвечены жёлтым фоном "тяжёлые" запросы к БД.
system/controllers/content/frontend.php (141) content->renderItemsList
system/core/action.php (29) content->call_user_func_array
Query 12 — 954,1 ms — [ 1010,4 ms ] system/controllers/content/model.php (1780) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_con_places i
INNER JOIN cms_con_places_cats_bind as b FORCE INDEX (item_id) ON b.item_id = i.id
WHERE (b.category_id = '54') AND (i.is_parent_hidden IS NULL) AND (i.is_approved = '1') AND (i.is_pub = '1')
system/controllers/content/frontend.php (204) modelContent->getContentItemsCount
system/controllers/content/frontend.php (204) content->renderItemsList
system/core/action.php (29) content->call_user_func_array
Query 13 — 3784,8 ms — [ 4796,7 ms ] system/controllers/content/model.php (1816) cmsModel->get Affected/returned rows: 15
SELECT i.*, u.nickname as user_nickname, f.title as folder_title
FROM cms_con_places i
FORCE INDEX (date_pub)
INNER JOIN cms_con_places_cats_bind as b FORCE INDEX (item_id) ON b.item_id = i.id
INNER JOIN cms_users as u FORCE INDEX (PRIMARY) ON u.id = i.user_id
LEFT JOIN cms_content_folders as f ON f.id = i.folder_id
WHERE (b.category_id = '54') AND (i.is_parent_hidden IS NULL) AND (i.is_approved = '1') AND (i.is_pub = '1')
ORDER BY i.date_pub desc
LIMIT 0, 15
system/controllers/content/frontend.php (205) modelContent->getContentItems
system/controllers/content/frontend.php (205) content->renderItemsList
system/core/action.php (29) content->call_user_func_array
Query 14 — 0,3 ms — [ 4800,5 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250048')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 15 — 0,5 ms — [ 4802,4 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250047')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 16 — 0,2 ms — [ 4804 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250046')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 17 — 0,3 ms — [ 4805,6 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250045')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 18 — 0,3 ms — [ 4807,2 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250044')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 19 — 0,2 ms — [ 4808,7 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250043')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 20 — 0,2 ms — [ 4810,2 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250042')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 21 — 0,2 ms — [ 4811,8 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250041')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 22 — 0,2 ms — [ 4813,3 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250040')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 23 — 0,2 ms — [ 4814,9 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250039')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 24 — 0,3 ms — [ 4816,5 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250038')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 25 — 0,2 ms — [ 4818 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250037')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 26 — 0,3 ms — [ 4819,6 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250036')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 27 — 0,3 ms — [ 4821,2 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250035')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 28 — 0,2 ms — [ 4822,8 ms ] system/controllers/rating/model.php (17) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_rating_log i
WHERE (i.user_id = '1') AND (i.target_controller = 'content') AND (i.target_subject = 'places') AND (i.target_id = '250034')
system/controllers/rating/frontend.php (27) modelRating->isUserVoted
system/controllers/content/frontend.php (224) rating->getWidget
system/controllers/content/frontend.php (224) content->renderItemsList
Query 29 — 0,1 ms — [ 4836,6 ms ] system/controllers/messages/model.php (321) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_users_messages i
WHERE (i.to_id = '1') AND (i.is_new = '1')
system/controllers/messages/hooks/menu_messages.php (15) modelMessages->getNewMessagesCount
system/controllers/messages/hooks/menu_messages.php (15) onMessagesMenuMessages->run
system/core/controller.php (454) onMessagesMenuMessages->call_user_func_array
Query 30 — 0 ms — [ 4837,5 ms ] system/controllers/messages/model.php (395) cmsModel->getCount Affected/returned rows: 1
SELECT COUNT(i.id) as COUNT
FROM cms_users_notices i
WHERE (i.user_id = '1')
system/controllers/messages/hooks/menu_messages.php (26) modelMessages->getNoticesCount
system/controllers/messages/hooks/menu_messages.php (26) onMessagesMenuMessages->run
system/core/controller.php (454) onMessagesMenuMessages->call_user_func_array
Query 31 — 0,1 ms — [ 4838,6 ms ] system/controllers/moderation/model.php (29) cmsModel->get Affected/returned rows: 0
SELECT i.*
FROM cms_moderators_tasks i
WHERE (i.moderator_id = '1')
LIMIT 1000
system/controllers/moderation/model.php (7) modelModeration->getTasks
system/controllers/moderation/hooks/menu_moderation.php (15) modelModeration->getTasksCounts
system/controllers/moderation/hooks/menu_moderation.php (15) onModerationMenuModeration->run
Query 32 — 0,1 ms — [ 4840,8 ms ] system/controllers/groups/model.php (205) cmsModel->get Affected/returned rows: 9
SELECT i.*, g.id as id, g.*
FROM cms_groups_members i
INNER JOIN cms_groups as g ON g.id = i.group_id
WHERE (i.user_id = '1')
ORDER BY g.title
LIMIT 1000
system/controllers/groups/hooks/menu_groups.php (16) modelGroups->getUserGroups
system/controllers/groups/hooks/menu_groups.php (16) onGroupsMenuGroups->run
system/core/controller.php (454) onGroupsMenuGroups->call_user_func_array
После Query 12, у всех время больше 4000ms
SELECT COUNT(i.id) AS COUNT FROM cms_con_places i INNER JOIN cms_con_places_cats_bind AS b FORCE INDEX (item_id) ON b.item_id = i.id WHERE (b.category_id = '54') AND (i.is_parent_hidden IS NULL) AND (i.is_approved = '1') AND (i.is_pub = '1')
SELECT i.*, u.nickname AS user_nickname, f.title AS folder_title FROM cms_con_places i FORCE INDEX (date_pub) INNER JOIN cms_con_places_cats_bind AS b FORCE INDEX (item_id) ON b.item_id = i.id INNER JOIN cms_users AS u FORCE INDEX (PRIMARY) ON u.id = i.user_id LEFT JOIN cms_content_folders AS f ON f.id = i.folder_id WHERE (b.category_id = '54') AND (i.is_parent_hidden IS NULL) AND (i.is_approved = '1') AND (i.is_pub = '1') ORDER BY i.date_pub DESC LIMIT 0, 15
1. Посмотрите, есть ли ещё такие долгие запросы на этой странице?
2. Покажите эти запросы непосредственно Fuze или r2.
Вот такая ошибка в режиме отладки
Notice: Undefined index: cats_view in /var/www/user/data/www/domen.ru/system/controllers/content/model.php on line 1414
Notice: Undefined index: cats_hide in /var/www/user/data/www/domen.ru/system/controllers/content/model.php on line 1415
Warning: Cannot modify header information — headers already sent by (output started at /var/www/user/data/www/domen.ru/system/controllers/content/model.php:1414) in /var/www/user/data/www/domen.ru/system/core/core.php on line 881
Warning: Cannot modify header information — headers already sent by (output started at /var/www/user/data/www/domen.ru/system/controllers/content/model.php:1414) in /var/www/user/data/www/domen.ru/system/core/core.php on line 882
Ошибка в запросе БД:
Неизвестный столбец 'i.is_deleted' в 'where clause'
SELECT i.*, u.nickname as user_nickname, f.title as folder_title
FROM cms_con_news i
FORCE INDEX (date_pub)
INNER JOIN cms_con_news_cats_bind as b FORCE INDEX (item_id) ON b.item_id = i.id
INNER JOIN cms_con_news_cats as c ON c.id = b.category_id
INNER JOIN cms_users as u FORCE INDEX (PRIMARY) ON u.id = i.user_id
LEFT JOIN cms_content_folders as f ON f.id = i.folder_id
WHERE (c.ns_left >= '2') AND (c.ns_right <= '3') AND (i.is_parent_hidden IS NULL) AND (i.is_approved = '1') AND (i.is_deleted IS NULL) AND (i.is_pub = '1')
ORDER BY i.date_pub desc
LIMIT 32
Последние вызовы:
get() @ /var/www/user/data/www/domen.ru/system/controllers/content/model.php: 2184
getContentItems() @ /var/www/user/data/www/domen.ru/system/controllers/content/widgets/list/widget.php: 118
run()
call_user_func_array() @ /var/www/user/data/www/domen.ru/system/core/core.php: 796
runWidget() @ /var/www/user/data/www/domen.ru/system/core/core.php: 757
runWidgets() @ /var/www/user/data/www/domen.ru/index.php: 45
- Предыдущая
- 1
- 2
- Показаны 16-24 из 24