Jump to content

[SOLVED] Why prestashop is that much slow


Recommended Posts

here are statics

magento :
ServerGotRequest: 14:02:58.546
ServerDoneResponse: 14:02:59.640

xtcommerce :
ServerGotRequest: 14:03:40.718
ServerDoneResponse: 14:03:40.968

oscommerce :
ServerGotRequest: 14:04:30.359
ServerDoneResponse: 14:04:30.500

prestashop :
ServerGotRequest: 14:07:58.500
ServerDoneResponse: 14:08:00.859


they all have default installion default db and these quires were without cookies

Link to comment
Share on other sites

There are many performance improvements in PrestaShop v1.4. You can use InnoDB instead of MySAM, use mcrypt instead of Blowfish, enable "Combine, Compress, Cache" for CSS and Javascript, and add GZIP compression and other optimisations to the .htaccess file. That will make a difference in the speed.

Link to comment
Share on other sites

There are many performance improvements in PrestaShop v1.4. You can use InnoDB instead of MySAM, use mcrypt instead of Blowfish, enable "Combine, Compress, Cache" for CSS and Javascript, and add GZIP compression and other optimisations to the .htaccess file. That will make a difference in the speed.


as first my main problem is execution time so its not about js css or gzip
i edited many files i cant just copy and paste 1.4 version files
i use categoriesblock - cache
i have converted myisam to innodb but have no idea how to focus to mcrypt from blowfish,


before innodb and categories cache

ServerGotRequest: 14:07:58.500
ServerDoneResponse: 14:08:00.859

after using innodb and categories cache
still execution takes takes 2.5 - 3 seconds


ServerGotRequest: 10:15:57.500
ServerDoneResponse: 10:15:59.578


ServerGotRequest: 10:15:52.000
ServerDoneResponse: 10:15:54.093
Link to comment
Share on other sites

this is the unmodified index.php

<?php

include(dirname(__FILE__).'/config/config.inc.php');

if(intval(Configuration::get('PS_REWRITING_SETTINGS')) === 1)
   $rewrited_url = __PS_BASE_URI__;

include(dirname(__FILE__).'/header.php');

$smarty->assign('HOOK_HOME', Module::hookExec('home'));
$smarty->display(_PS_THEME_DIR_.'index.tpl');

include(dirname(__FILE__).'/footer.php');

?>





i edited it to learn the execution time

<?php
  $mtime = microtime(); 
  $mtime = explode(" ",$mtime); 
  $mtime = $mtime[1] + $mtime[0]; 
  $starttime = $mtime;

include(dirname(__FILE__).'/config/config.inc.php');

if(intval(Configuration::get('PS_REWRITING_SETTINGS')) === 1)
   $rewrited_url = __PS_BASE_URI__;

include(dirname(__FILE__).'/header.php');

$smarty->assign('HOOK_HOME', Module::hookExec('home'));
$smarty->display(_PS_THEME_DIR_.'index.tpl');

include(dirname(__FILE__).'/footer.php');


  $mtime = microtime(); 
  $mtime = explode(" ",$mtime); 
  $mtime = $mtime[1] + $mtime[0]; 
  $endtime = $mtime; 
  $totaltime = ($endtime - $starttime); 
  echo "This page was created in ".substr($totaltime,0,4)." seconds";

?>



and the results at the footer :

This page was created in 2.54 seconds
This page was created in 2.18 seconds
This page was created in 2.92 seconds
This page was created in 2.77 seconds
This page was created in 2.39 seconds

Link to comment
Share on other sites

Modules. Click the tick icon on each module to disable the module without uninstalling it.


ahh now its decreased to 0.8 seconds i have to find which increases the page load time exaclty i suspect about top menu

when i disable

Top horizontal menu v1.3
Menu v2.6.4
editorial

menu i earn 1 - 1.5 seconds
Link to comment
Share on other sites

×
×
  • Create New...