Jump to content


Mariusz

Member Since 15 Mar 2015
Offline Last Active Mar 22 2015 11:02 PM
-----

#285 My Prestashop is slooooow

Posted by Tom Evans on 23 April 2014 - 11:25 AM

Okay, Let's started with some tips - Step by step process:

 

1. SEO & URLs: It does help when caching the pages. Compared to using page names with lots variables which are hard to cache, it is better to cache .html or .htm pages
This can be done directly from section Preferences / SEO & URLs .

 

2. Smarty cache: Now start with the exact settings for properly caching the pages. First go to Advanced Parameters / Performance.  check the following options:

  •     Never recompile template files
  •     Check Cache
  •     Do not open console

 

3.  CCC (Combine, Compress and Cache): As it was before deactivated, we only need to check:

  • Use CCC for CSS
  • Use CCC for JavaScript.
  • Keep HTML as original
  • Keep inline JavaScript in HTML as original
  • Check Apache optimization
     

4. Ciphering: usually leave it as by default.

 

5. Caching: If possible, try using memcached, APC or Xcache, if your hosting service does not offers this, you can use the normal File System cache. The next is the CDN option, you can also use a CDN for speeding up and caching even more.

6. Implementing browser static cached file for prestashop: Its a fancy name, but its really just some .htaccess rules with some expire and caching headers.  See the code:

 

1<ifmodule mod_mime.c>
2 <filesmatch ".html.gz$">
3   ForceType text/html
4   FileETag None
5 </filesmatch>
6  AddEncoding gzip .gz
7  AddType text/html .gz
8</ifmodule>
9<ifmodule mod_deflate.c>
10  SetEnvIfNoCase Request_URI .gz$ no-gzip
11</ifmodule>
12<ifmodule mod_headers.c>
13  Header set Vary "Accept-Encoding, Cookie"
14  Header set Cache-Control 'max-age=3600, must-revalidate'
15</ifmodule>
16<ifmodule mod_expires.c>
17  ExpiresActive On
18  ExpiresByType text/html A3600
19</ifmodule>

 

Open the .htaccess file inside your document root of your website and add the above lines just under your existing .htaccess rules.
With this you set a timeout of 3600 seconds on each resource request from your website, on next request of the same page, the user will use the pages from their browser cache and he will also be happy that the page is loading faster.




#69 I can't enable left column on CMS pages

Posted by vekia on 05 April 2014 - 06:56 PM

hello

try to run this sql query in your database manager like phpmyadmin

INSERT IGNORE INTO `ps_meta` (`id_meta`, `page`, `configurable`) VALUES(NULL, 'products-comparison', '1'),(NULL, 'cms', '0'),(NULL, 'category', '0'),(NULL, 'product', '0'),(NULL, 'module-bankwire-payment', '0'),(NULL, 'module-bankwire-validation', '0'),(NULL, 'module-cheque-validation', '0'),(NULL, 'module-cheque-payment', '0');INSERT IGNORE INTO `ps_theme_meta` ( `id_theme` , `id_meta` , `left_column` , `right_column` )SELECT `ps_theme`.`id_theme` , `ps_meta`.`id_meta` , `default_left_column` , `default_right_column`FROM `ps_theme` , `ps_meta`;