wallacept Posted September 23, 2009 Share Posted September 23, 2009 i change htaccess and putphp_value memory_limit 64Mbecause i have much products.how optimize? how faster open store?suggestions!p.s. i search in forum and not find solutions/suggestions! Link to comment Share on other sites More sharing options...
Shamrock Posted September 24, 2009 Share Posted September 24, 2009 empty your smarty cash man Link to comment Share on other sites More sharing options...
wallacept Posted September 24, 2009 Author Share Posted September 24, 2009 how Shamrock, empty smarty cash? Link to comment Share on other sites More sharing options...
Shamrock Posted September 24, 2009 Share Posted September 24, 2009 open ftp go tools/smarty/compile delete all files in compile catalog and you should install this good luck man AdminTab-Cache03.zip Link to comment Share on other sites More sharing options...
wallacept Posted September 24, 2009 Author Share Posted September 24, 2009 Shamrock, this procedure is safe/security?my presta is 1.1.0.5 Link to comment Share on other sites More sharing options...
Shamrock Posted September 24, 2009 Share Posted September 24, 2009 im using it on my 1.1.0.5 www.dvdklubben.se works fine man Link to comment Share on other sites More sharing options...
wallacept Posted September 24, 2009 Author Share Posted September 24, 2009 ok fine.i open ftp go tools/smarty/compile delete all files?? and index.php file?and after?install what? Link to comment Share on other sites More sharing options...
Shamrock Posted September 24, 2009 Share Posted September 24, 2009 you just delete all files in compile catalog IMPORTANTdo not delete anything else in smarty catalog man if you do not want to this process from ftp you can install AdminTab-Cache03.zip and empty your cash from backoffice man Link to comment Share on other sites More sharing options...
wallacept Posted September 24, 2009 Author Share Posted September 24, 2009 empty cash??but store slow why? cash?but empty cash no is problem?how install AdminTab-Cache03 ? Link to comment Share on other sites More sharing options...
Shamrock Posted September 24, 2009 Share Posted September 24, 2009 Try this man http://www.prestashop.com/forums/viewthread/23543/developpement_et_modules/module_vider_le_cache Link to comment Share on other sites More sharing options...
wallacept Posted September 24, 2009 Author Share Posted September 24, 2009 how install this module AdminTab-Cache03?i search this your link and not say how install! Link to comment Share on other sites More sharing options...
Shamrock Posted September 24, 2009 Share Posted September 24, 2009 oki i will help you manyou have 3 catalog and one file drag all files in root and over wright files then go tohttp://www.yourdomain.com/install.php after this process delete install.phpthen you go to backoffice tools>and tabs add new tab you have to give it a name like chash if u likein class wright this AdminCache then you can give an icon /img/t/AdminCache.gif then you choose where you want to put your tab my sugestion is that you put it in tools mandose this guide good man Link to comment Share on other sites More sharing options...
wallacept Posted September 24, 2009 Author Share Posted September 24, 2009 done, but slow open store Supprimer la compile?or Supprimer le cache?or two options?i click in "suprimer le cache" but the store are same slow! Link to comment Share on other sites More sharing options...
Radu Posted September 24, 2009 Share Posted September 24, 2009 presta has a veryyyyyyy slooooowwwwwwwww query in bestseller list if you have many products and/or orders it will do no harm changing in classes/ProductSale.php from this: $result = Db::getInstance()->ExecuteS(' SELECT p.id_product, pl.`link_rewrite`, pl.`name`, pl.`description_short`, i.`id_image`, il.`legend`, ps.`quantity` AS sales, p.`ean13`, cl.`link_rewrite` AS category FROM `'._DB_PREFIX_.'product_sale` ps LEFT JOIN `'._DB_PREFIX_.'product` p ON ps.`id_product` = p.`id_product` LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.intval($id_lang).') LEFT JOIN `'._DB_PREFIX_.'image` i ON (i.`id_product` = p.`id_product` AND i.`cover` = 1) LEFT JOIN `'._DB_PREFIX_.'image_lang` il ON (i.`id_image` = il.`id_image` AND il.`id_lang` = '.intval($id_lang).') LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (cl.`id_category` = p.`id_category_default` AND cl.`id_lang` = '.intval($id_lang).') LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON (cp.`id_product` = p.`id_product`) INNER JOIN `'._DB_PREFIX_.'category_group` ctg ON (ctg.`id_category` = cp.`id_category`) '.($cookie->id_customer ? 'INNER JOIN `'._DB_PREFIX_.'customer_group` cg ON (cg.`id_group` = ctg.`id_group`)' : '').' WHERE p.`active` = 1 AND ('.($cookie->id_customer ? 'cg.`id_customer` = '.intval($cookie->id_customer).' OR' : '').' ctg.`id_group` = 1) GROUP BY p.`id_product` ORDER BY sales DESC LIMIT '.intval($pageNumber * $nbProducts).', '.intval($nbProducts)); to this: $result = Db::getInstance()->ExecuteS(' SELECT p.id_product, pl.`link_rewrite`, pl.`name`, pl.`description_short`, i.`id_image`, il.`legend`, ps.`quantity` AS sales, p.`ean13`, cl.`link_rewrite` AS category FROM `'._DB_PREFIX_.'product_sale` ps LEFT JOIN `'._DB_PREFIX_.'product` p ON ps.`id_product` = p.`id_product` LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (p.`id_product` = pl.`id_product` AND pl.`id_lang` = '.intval($id_lang).') LEFT JOIN `'._DB_PREFIX_.'image` i ON (i.`id_product` = p.`id_product` AND i.`cover` = 1) LEFT JOIN `'._DB_PREFIX_.'image_lang` il ON (i.`id_image` = il.`id_image` AND il.`id_lang` = '.intval($id_lang).') LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (cl.`id_category` = p.`id_category_default` AND cl.`id_lang` = '.intval($id_lang).') LEFT JOIN `'._DB_PREFIX_.'category_product` cp ON (cp.`id_product` = p.`id_product`) INNER JOIN `'._DB_PREFIX_.'category_group` ctg ON (ctg.`id_category` = cp.`id_category`) WHERE p.`active` = 1 GROUP BY p.`id_product` ORDER BY sales DESC LIMIT '.intval($pageNumber * $nbProducts).', '.intval($nbProducts)); I am using smarty cache instead of the above code however it's not trivial to present it here as you may break your store Link to comment Share on other sites More sharing options...
wallacept Posted September 24, 2009 Author Share Posted September 24, 2009 the problem persists.no have solution? smarty have a bug? prestashop after import much products is slow?who are problems? Link to comment Share on other sites More sharing options...
peropi101 Posted September 25, 2009 Share Posted September 25, 2009 Hi,still in trouble here....same here man i'm using the smarty cache but still couldn't fixed it. What's my prob?Regards,peropi101Placement financier Link to comment Share on other sites More sharing options...
Radu Posted September 25, 2009 Share Posted September 25, 2009 what's your shop? Link to comment Share on other sites More sharing options...
wallacept Posted September 25, 2009 Author Share Posted September 25, 2009 Radu store is prestashop 1.1.0.5 -> http://ccampea.com/lojaccthe people this forum is cool, but this problem not resolution. or not? have a solution? Link to comment Share on other sites More sharing options...
Radu Posted September 25, 2009 Share Posted September 25, 2009 maybe the hosting is bad too, however in config/smarty.config force_compile should be falsealso try disabling the bestsellers module - just for now and let me know to take another look Link to comment Share on other sites More sharing options...
Recommended Posts