Стал разбираться с тормозами
define('_PS_DEBUG_PROFILING_', true);
Увидел следующее:
Time (ms) 150
/classes/SmartyCustom.php:263
INSERT IGNORE INTO `ps_smarty_lazy_cache`
(`template_hash`, `cache_id`, `compile_id`, `last_update`)
VALUES ('70254dafc8457e24235191fc445cee81',"productlist_colors|38|1|1","","2016-07-26 11:26:49")
Вопрос, что за таблица ps_smarty_lazy_cache
С чем связаны тормоза?
Как ускорить?
В строке SmartyCustom.php:263 имеем:
public function insert_in_lazy_cache($template, $cache_id, $compile_id)
{
$template_md5 = md5($template);
$sql = 'INSERT IGNORE INTO `'._DB_PREFIX_.'smarty_lazy_cache`
(`template_hash`, `cache_id`, `compile_id`, `last_update`)
VALUES (\''.pSQL($template_md5).'\'';
$sql .= ',"'.pSQL((string)$cache_id).'"';
if (strlen($compile_id) > 32) {
$compile_id = md5($compile_id);
}
$sql .= ',"'.pSQL((string)$compile_id).'"';
$sql .= ',"'.date('Y-m-d H:i:s').'")';
return Db::getInstance()->execute($sql, false);
}