Стандартный модуль sitemap в ОК - это полный идиотизм. Автор в кой то веке решил вспомнить о существовании DRY (который намеренно игнорирует везде в ОК) и поленился сделать отдельную модель, потому модуль использует меганагруженные запросы из чужих моделей (прежде всего речь о модели товара).
А в ОК 2 добавилась новая беда - в сайтмап начала добавляться ссылка на изображение товара, так что нагрузка стала ещё больше.
Для начала можно попробовать просто убрать ссылку на изображения товара из генерации. Для 6,5к этого должно быть достаточно, если хостинг не слишком тормознутый.
В файле /catalog/controller/feed/google_sitemap.php привести вот этот кусок кода:
foreach ($products as $product) {
if ($product['image']) {
$output .= '<url>';
$output .= '<loc>' . $this->url->link('product/product', 'product_id=' . $product['product_id']) . '</loc>';
$output .= '<changefreq>weekly</changefreq>';
$output .= '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($product['date_modified'])) . '</lastmod>';
$output .= '<priority>1.0</priority>';
$output .= '<image:image>';
$output .= '<image:loc>' . $this->model_tool_image->resize($product['image'], $this->config->get($this->config->get('config_theme') . '_image_popup_width'), $this->config->get($this->config->get('config_theme') . '_image_popup_height')) . '</image:loc>';
$output .= '<image:caption>' . $product['name'] . '</image:caption>';
$output .= '<image:title>' . $product['name'] . '</image:title>';
$output .= '</image:image>';
$output .= '</url>';
}
}
к такому виду:
foreach ($products as $product) {
$output .= '<url>';
$output .= '<loc>' . $this->url->link('product/product', 'product_id=' . $product['product_id']) . '</loc>';
$output .= '<changefreq>weekly</changefreq>';
$output .= '<lastmod>' . date('Y-m-d\TH:i:sP', strtotime($product['date_modified'])) . '</lastmod>';
$output .= '<priority>1.0</priority>';
$output .= '</url>';
}
И убрать вот эту строку чуть выше:
$this->load->model('tool/image');