Radek100 Posted December 13, 2012 Share Posted December 13, 2012 I upgraded prestashop from 1.4.6.2. to 1.5.2. and now I still run 1.4.6.2. for customers on hosting and on same hosting I am testing upgraded version 1.5.2. and it's so slow that it is not useable... I have 32 categories and 549 products Here are some times (for sure this is already visited pages - not for the first time, cache is loaded) click on same 8 categories in both versions: access 1.4.6.2. approx. 2939 ms, access 1.5.2. approx 5601 ms click on same already 4 visited products: access 1.4.6.2. approx 5109 ms, access 1.5.2. approx 6854 ms click on visited cms page: access 1.4.6.2. approx 1640 ms, access 1.5.2. approx. 2914 ms access of homepage during testing, 8 hits: 1.4.6.2. approx 3518 ms and 1.5.2. 5197 ms I used new presta theme for 1.5.2. tried to switch off modules: block specials, top horizontal menu, html box, home slide pictures. I got little bit better times, but no so "good" as 1.4.6.2 category: 4451 ms, products: 7057 ms (same), homepage: 4708 ms (but without those modules it is not possible to use :-)) I tried to apply FileSystem cache but no effect on speed, it's same. I attached my performance setting on print sceen file, is all good? Where is the problem? Thanks for any ideas... I think I use my new template on 1.4.6.2. and stay on that version, one thing is that I would like to have editing of orders finally... Link to comment Share on other sites More sharing options...
Radek100 Posted December 17, 2012 Author Share Posted December 17, 2012 Update: I go back to old version 1.4.6.2, add a new template (free 1.5) and modified it to same design as tested version 1.5.2. I found out that it's speed goes down. It is even more slower then 1.5.2. I wrote in first post here. So it looks like the speed of both prestashop versions 1.4.6.2 and 1.5.2. go down because of combination of new modules and new template. I found some free templates for 1.5.2. so I go to try them. Link to comment Share on other sites More sharing options...
Trip Posted December 18, 2012 Share Posted December 18, 2012 (edited) Unless you have a root server with enough resources and even than I would not recommend using file system cache. My experiments with that a couple of year ago were not very good. Use methods like described here http://www.prestasho...38#entry1030438 to find the bottleneck and maybe apache benchmark http://httpd.apache....rograms/ab.html to really find out how the different installations are performing. Best regards, trip Edited December 18, 2012 by Trip (see edit history) Link to comment Share on other sites More sharing options...
Radek100 Posted December 20, 2012 Author Share Posted December 20, 2012 Unless you have a root server with enough resources and even than I would not recommend using file system cache. My experiments with that a couple of year ago were not very good. Use methods like described here http://www.prestasho...38#entry1030438 to find the bottleneck and maybe apache benchmark http://httpd.apache....rograms/ab.html to really find out how the different installations are performing. Best regards, trip Thank you I will check it. I find out that web browser cache pages, and I must add this code into htaccess: ExpiresByType text/html A0 In other way without this code my shop is cached to browser and all visited pages are cached, if then user register and login to the shop, then all visited (cached) pages in browser doesn's show his status that he is login. And this code really slow down my Prestashop, but I don't know how to solve this problem without this code in htaccess, or what to set in webhosting... Link to comment Share on other sites More sharing options...
Trip Posted December 21, 2012 Share Posted December 21, 2012 (edited) Hi Radek, as a shop system generates dynamic content caching the html is probably no good idea. The rules generated by prestashop should be fine. <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType text/css "access plus 1 week" ExpiresByType text/javascript "access plus 1 week" ExpiresByType application/javascript "access plus 1 week" ExpiresByType application/x-javascript "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" </IfModule> FileETag INode MTime Size <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript </IfModule> Without having a look at your installation it is hard to see what is wrong. Maybe memory resources are to low. A good way to see witch part of the site is slow I posted a snippet on the given link. In case you did not read it I quote it here. In /config/defines.inc.php you can enabledefine('_PS_DEBUG_PROFILING_', true); . Please use that with caution. It might temporarely break your front or backend if there are bugs. As it says - it is for debug profiling. I would test that on a local copy and only on a live server when you are sure there are no custumers. I have just a test installation here. My overall experience is, I'll wait for the next version but not because of performance issues. I thing it might even be a little faster than the 1.4.9 but it is a long time ago that i benchmarked that in comparison. No doubt with the more complexity the server specs are higher. So if you have a massive memory problem than you might run into trouble with the new version but I can not copy that this is a prestashop imminent problem - at least not with my configuration here. Best regards, trip Edited December 21, 2012 by Trip (see edit history) Link to comment Share on other sites More sharing options...
ravensbur Posted December 21, 2012 Share Posted December 21, 2012 to speed up all prestashop , Simple remove all the comments and white space on each js ,css files in JS CSS folder(please back up all files), because some of the files are far too fat,some js file has more than 16000 code line with lot of comments for programmer... Link to comment Share on other sites More sharing options...
BillyHardcore Posted December 21, 2012 Share Posted December 21, 2012 If only Link to comment Share on other sites More sharing options...
Radek100 Posted January 3, 2013 Author Share Posted January 3, 2013 Ok, I try to clean the code, but this will help? I checked cached css files, they doesn't include spaces or comments. Sure I make backup :-). Link to comment Share on other sites More sharing options...
BillyHardcore Posted January 3, 2013 Share Posted January 3, 2013 I dont think you're going to get much of a performance boost from removing comments and white space. However, no one is stopping you! :-) Link to comment Share on other sites More sharing options...
Recommended Posts