Sumit Vasudeva Posted February 1, 2014 Share Posted February 1, 2014 Hi, Please share the preferred settings for performance under advanced parameters. I am using PS 1.5.6.1 Thanks a ton Link to comment Share on other sites More sharing options...
vekia Posted February 3, 2014 Share Posted February 3, 2014 here it is: if you've got possibility run APC read this great article: http://blog.dh42.com/apc-speed-prestashop/ Link to comment Share on other sites More sharing options...
smallbizwiz Posted March 20, 2014 Share Posted March 20, 2014 Vekia - I have a question for ya. I have multiple sites running 1.5.4.1, and one in particular (www.JohnsPassVillage.net) is about two seconds slower than most others. I have chopped the site down to just a simple alert in the layoutfile (i.e. not loading anything in the header), and it's taking two seconds just to get to the that file. That tells me its something in the PrestaShop initialization that is tying me up. All back-office performance settings on the JohnsPass site are the same as other sites that are moving along just fine. I tried removing all modules that I don't need, but that didn't seem to speed it up. I blew away the cache, every override file (i wasn't using any overrides). Any other directories that you can think of that might hamper "pre-loading" performance? Thanks; have a good one! Teo Link to comment Share on other sites More sharing options...
smallbizwiz Posted March 20, 2014 Share Posted March 20, 2014 Just an update...I tried upgrading to 1.6...same timing to get to the layout.tpl Link to comment Share on other sites More sharing options...
smallbizwiz Posted March 21, 2014 Share Posted March 21, 2014 All...in case you run into this problem. Here were my troubleshooting steps: 1. Use http://www.bytecheck.com/ to test TTFB, click it several times over the course of a half hour to get a true time. Test it against other sites that are similar (if possible) to make sure it makes sense that this tool can be trusted in your mind - simple but important 2. Put some echos in php files starting with index.php where your installation begins. Work your way back until you see where the latency is. In my case, it was right when the config file was called 3. Check the file "error_log" under the root of your installation directory - this is what helped me a ton 4. Troubleshooting "" led me to the homefeatured module causing issues. 5. I disabled the module in the BO, then ran the TTFB test - Viola! It's fast. 6. Now knowing the culprit, I dug into the homefeatured module further, but it was a bastardized version of it and not appropriate to post the resolution. Another way I'll do this in the future - disable all non-essential modules, then test. Then disable all essential modules one-by-one. Hope the steps help out. Link to comment Share on other sites More sharing options...
smallbizwiz Posted April 9, 2014 Share Posted April 9, 2014 All - In case others are looking for performance enhancements, I found a few lines of code (i.e. the piece that starts with Header set Connection keep-alive) that I put in my htaccess that chopped nearly a full second off of sites that have a heavy index/landing page. Seems to help other pages as well. Below is the entire htaccess, replace your site's URL as appropriate. My sites always use /VisitTampaBay/ as the root directory (makes it easy to reference other files). If you don't do this, then you'll have to account for that as well. Hope it helps! # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule . - [E=REWRITEBASE:/VisitTampaBay/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.thejetskirepairshop.com$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] Header set Connection keep-alive 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" <Files index.html> Header append Cache-Control "public, must-revalidate" </Files> </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /VisitTampaBay/index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now