secondhand-obchod.sk Posted August 31, 2014 Share Posted August 31, 2014 Hi, I hope someone can help me here. My site is very slow. I use standard prestahop version 1.6.0.9 with the default theme. We have just about 1000 products online, so really not too much. First I thought it could be a server issue, so I changed to another, but the problem was not solved. Actually another problem was added, since on a shared server with cpanel the provider refused to change the memory settings and simple functions in the backend, like "show 1000 products" resulted in a blank screen. The website is secondhand-obchod.sk Link to comment Share on other sites More sharing options...
El Patron Posted August 31, 2014 Share Posted August 31, 2014 The first thing a shop owner should do (and then repeat over time) is to profile their shop. This is accomplished by enabling the built in PrestaShop Debug Profiling: open file config/defines.inc.php change this line to true define('_PS_DEBUG_PROFILING_', false); //set to true too enable profiling visit slow shop pages, collect the profiling data, analyze the data. note: when enabled, all visitors will see this so turn off as soon as you collect the data. tip: back office-->advanced-->performance my recommend optimal settings: http://screencast.com/t/A9Y3cxU5Sc http://screencast.com/t/55QbFxyjL Link to comment Share on other sites More sharing options...
El Patron Posted August 31, 2014 Share Posted August 31, 2014 tip: review of your shop, disable Geo Localization, the accuracy of maxmind IP is only 85%, that means up to 15% of valid visitors will not be able to shop. This is best restricted by ship to and/or countries you allow at registration. To confidently use geo localization you would need Geo Targeting Pro, I'd recommend other module, but there are none. Link to comment Share on other sites More sharing options...
secondhand-obchod.sk Posted August 31, 2014 Author Share Posted August 31, 2014 Thx, I will change that right away. I have the config/defines.inc.php changed right now and there is really a lot of info. Load time: 3442 msYou'd better run your shop on a toaster Execution Load time (ms) config 392 constructor 0 init 61 checkAccess 0 setMedia 8 postProcess 0 initHeader 0 initContent 2245 initFooter 513 display 222 Hook Processing displayHomeTab 1.70 Mb in 803 ms displayFooter 2.24 Mb in 512 ms displayLeftColumn 5.14 Mb in 462 ms displayHeader 25.64 Mb in 384 ms displayHome 0.68 Mb in 321 ms displayTop 3.70 Mb in 211 ms displayTopColumn 0.18 Mb in 82 ms displayHomeTabContent 0.69 Mb in 61 ms displayNav 0.26 Mb in 11 ms moduleRoutes 0.00 Mb in 0 ms displayProductDeliveryTime 0.00 Mb in 0 ms displayProductListReviews 0.00 Mb in 0 ms displayMyAccountBlockfooter 0.00 Mb in 0 ms DisplayOverrideTemplate 0.00 Mb in 0 ms displayProductPriceBlock 0.00 Mb in 0 ms displayBanner 0.00 Mb in 0 ms actionDispatcher 0.00 Mb in 0 ms actionFrontControllerSetMedia 0.00 Mb in 0 ms Time (ms) 50.309 UPDATE `SHO_page_viewed`SET `counter` = `counter` + 1WHERE `id_date_range` = 114AND `id_page` = 53AND `id_shop` = 1 from /modules/statsdata/statsdata.php:107from /classes/Hook.php:550from /tools/profiling/Hook.php:60from /classes/controller/FrontController.php:811from /tools/profiling/Controller.php:233from /classes/Dispatcher.php:373from /index.php:28 Time (ms) 18.15 from /modules/pm_advancedsearch4/classes/AdvancedSearchClass.php:2935from /modules/pm_advancedsearch4/pm_advancedsearch4.php:3952from /modules/pm_advancedsearch4/pm_advancedsearch4.php:4264from /modules/pm_advancedsearch4/pm_advancedsearch4.php:4360from /classes/Hook.php:550from /tools/profiling/Hook.php:60from /classes/controller/FrontController.php:449from /controllers/front/IndexController.php:37from /tools/profiling/Controller.php:227from /classes/Dispatcher.php:373from /index.php:28 Time (ms) 17.727 rom /modules/pm_advancedsearch4/classes/AdvancedSearchClass.php:2978from /modules/pm_advancedsearch4/pm_advancedsearch4.php:3952from /modules/pm_advancedsearch4/pm_advancedsearch4.php:4264from /modules/pm_advancedsearch4/pm_advancedsearch4.php:4360from /classes/Hook.php:550from /tools/profiling/Hook.php:60from /classes/controller/FrontController.php:449from /controllers/front/IndexController.php:37from /tools/profiling/Controller.php:227from /classes/Dispatcher.php:373from /index.php:28 Link to comment Share on other sites More sharing options...
El Patron Posted August 31, 2014 Share Posted August 31, 2014 that is not all info, this is something that is difficult to post here...if you do not resolve on your own or nobody can glean answer from your post...then I'd post in job offers to fix, those folks work fast (and very reasonable rates). Link to comment Share on other sites More sharing options...
secondhand-obchod.sk Posted August 31, 2014 Author Share Posted August 31, 2014 Thank you for the advice. It seems one of the reasons is that I uploaded pictures which are too large for the banners, slider, etc.. I assumed prestashop optimizes them in the right size. Could you tell me if the pictures for the products are optimized in the right size? Link to comment Share on other sites More sharing options...
El Patron Posted August 31, 2014 Share Posted August 31, 2014 Thank you for the advice. It seems one of the reasons is that I uploaded pictures which are too large for the banners, slider, etc.. I assumed prestashop optimizes them in the right size. Could you tell me if the pictures for the products are optimized in the right size? The clue is in the details, anything else is just bumping around in the dark. Link to comment Share on other sites More sharing options...
wakabayashi Posted August 31, 2014 Share Posted August 31, 2014 The first thing a shop owner should do (and then repeat over time) is to profile their shop. This is accomplished by enabling the built in PrestaShop Debug Profiling: open file config/defines.inc.php change this line to true define('_PS_DEBUG_PROFILING_', false); //set to true too enable profiling visit slow shop pages, collect the profiling data, analyze the data. note: when enabled, all visitors will see this so turn off as soon as you collect the data. tip: back office-->advanced-->performance my recommend optimal settings: http://screencast.com/t/A9Y3cxU5Sc http://screencast.com/t/55QbFxyjL What is the reason to set "Minify HTML" to no? Doesn't this speed up? Link to comment Share on other sites More sharing options...
El Patron Posted September 1, 2014 Share Posted September 1, 2014 What is the reason to set "Minify HTML" to no? Doesn't this speed up? speed up is a fairly complex subject, does minify help, very little, very little bang for the buck... having javascript bottom, helps 'significantly'. 1 Link to comment Share on other sites More sharing options...
Mister Denial Posted September 1, 2014 Share Posted September 1, 2014 speed up is a fairly complex subject, does minify help, very little, very little bang for the buck... having javascript bottom, helps 'significantly'. I agree with El Patron, on my installation I also have both minify HTML and compress inline javascript set to "no", because the page actually loads faster than if those were enabled. You might get a better performance grade rating in Yslow if they're enabled, but in the end, only the user timing counts. 2 Link to comment Share on other sites More sharing options...
secondhand-obchod.sk Posted September 2, 2014 Author Share Posted September 2, 2014 Thank you all for the responses. I went down from Load time: 3442 ms to Load time: 1170 ms so a bit better, but still sitting on that toaster :-( for the first page. Unfortunately once I enter category pages I am at Load time: 5124 ms Changing the pictures sizes helped a lot, but also the search module I bought seemed to be a cause. I am now back to the standard "Layered navigation block" and it seems to help. What seems to make more problems now is the header... any suggestions ? displayHeader18.81 Mb in 414 ms from /classes/Hook.php:550 from /classes/controller/FrontController.php:811 rom /tools/profiling/Controller.php:233from /classes/Dispatcher.php:373 Unfortunately both the header and the left column had bad loading times. - Is there a way to turn off the images on the categories in the default theme ? - Use Rijndael with mcrypt lib. (you must install the Mcrypt extension) It should be faster and was activated on initial installation but is the extension installed by default ? how to check this ??? - Regarding the settings I agree with prestashop superstar. I tested several combinations and this seems the fastest one. - I am now hosted on a shared server. Does it make a signifigant difference to change to a VPS ? My provider told me that the database would be faster accessable. Is this a notable diffence in speed, or just "very little, very little bang for the buck..." ? Thanks again for the help :-) 1 Link to comment Share on other sites More sharing options...
Guest Posted September 2, 2014 Share Posted September 2, 2014 Maybe this pinned post can help uoy? Link to comment Share on other sites More sharing options...
secondhand-obchod.sk Posted September 2, 2014 Author Share Posted September 2, 2014 Thx :-) It might solve an issue I have with google analytics. Even though i have prices and google shows them. I keep getting failures. Regarding my struggle for speed I found this post:http://www.prestashop.com/forums/topic/306797-enabling-caching-slows-down-frontoffice-and-backoffice/?do=findComment&comment=1552359 At the bottom of the ADVANCED SETTINGS -> PERFORMANCE page do not activate File System Cache. Can someone tell me if Memcached, APC or Xcache speed me up ? This post helped me at least to speed up the backend. 512M was not enough to even load my sitemap .. working fine now. Link to comment Share on other sites More sharing options...
El Patron Posted September 2, 2014 Share Posted September 2, 2014 Thx :-) It might solve an issue I have with google analytics. Even though i have prices and google shows them. I keep getting failures. Regarding my struggle for speed I found this post: http://www.prestashop.com/forums/topic/306797-enabling-caching-slows-down-frontoffice-and-backoffice/?do=findComment&comment=1552359 At the bottom of the ADVANCED SETTINGS -> PERFORMANCE page do not activate File System Cache. Can someone tell me if Memcached, APC or Xcache speed me up ? This post helped me at least to speed up the backend. 512M was not enough to even load my sitemap .. working fine now. Hi, happy to hear you have improved shop performance. For cache or other questions please start new topic. Link to comment Share on other sites More sharing options...
Recommended Posts