(I'm from Spain, sorry about my bad English)
As you now, there is many problems with the cache system on prestahop, which makes it slow. You can modify the file: smarty.config.inc.php like this:
$smarty->caching = false;
$smarty->force_compile = false;
This makes that force compile is off, so the page is not regenerated every time. Doing this I get load times of 0.8-1.2 secs, and if I put it true I get 4-6 secs loading, so it's very important to put it off when you use your shop online.
the other var: $smarty->caching = false if you put it to true, you activate your cache, and on my test site I get loadings of 0.2 secs, which are very good. The problem is that it actually doesn't work:
As prestashop doesn't pass the ID to the smarty cache, the first category you visit, you will get the same page for every category page, and a similar thing with products and so on...
You can solve it doing this: On category.php look for (line 81 on my file):
$smarty->display(_PS_THEME_DIR_.'category.tpl');
And change to this:
$smarty->display(_PS_THEME_DIR_.'category.tpl',$category->id);
And the same with products.php and others...
The problem is that as I'm not an expert, I can't know the possible errors of doing this, and the real advantages.
That's why I would like other people to help me doing this test and giving your opinion.
Thanks for all



Vous parlez français ?









