Jump to content

E' possibile velocizzare il sito??? Ho trovato questo.


duska

Recommended Posts

Salve,
ho un sito in prestashop e vorrei cercare di velocizzarlo un pò nell'apertura delle pagine e nei caricamenti.
Navigando sul forum ho trovato questo in basso. Qualcuno ne sa di più mi date informazioni se funziona o meno?


1 – il file config/smarty.config.inc.php riga 10
<?php

require_once(PS_SMARTY_DIR.‘Smarty.class.php’);
$smarty = new Smarty();
$smarty->template_dir = PS_THEME_DIR.‘tpl’;
$smarty->compile_dir = PS_SMARTY_DIR.‘compile’;
$smarty->cache_dir = PS_SMARTY_DIR.‘cache’;
$smarty->config_dir = PS_SMARTY_DIR.‘configs’;
$smarty->caching = false;
$smarty->force_compile = false; // to pass “false” when put into production
$smarty->compile_check = false;
//$smarty->debugging = true;
$smarty->debug_tpl = PS_ALL_THEMES_DIR . ‘debug.tpl’;

2 – Inserire nel file .htaccess

mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.gzip.




Grazie.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...