Parámetros de Rendimiento

Esta página combina muchas herramientas y consejos que pueden ayudarle a mejorar el rendimiento de su tienda en el servidor – sin fines comerciales, aunque un servidor que tenga un mayor rendimiento  será capaz de atender a las consultas y peticiones de un mayor número de usuarios, y por lo tanto podría obtener más ventas.

Smarty

Smarty es el nombre del motor de plantillas utilizado por los temas de PrestaShop. Puede aprender más sobre él desde el siguiente enlace: http://www.smarty.net/.

Hay varias opciones:

Modo Depuración

Desde el modo de depuración, puede optar por reducir el impacto que tienen ciertas funcionalidades en PrestaShop, y así poder evaluar con precisión de donde proviene un error:

Características opcionales

Algunas características de PrestaShop pueden ser desactivadas si no las utiliza, ya que pueden ralentizar su tienda.

Si su catálogo tiene actualmente productos que hacen uso de estas características, no podrá desactivarlas. Tendrá que eliminar esos productos para poder desactivar estas opciones.

Puede desactivar las siguientes características de catálogo:

Combinación, Compresión y Caché (CCC)

CCC es un conjunto de herramientas destinadas a minimizar la carga del servidor y el tiempo de carga del tema de la tienda.

Esto hace lo que dice: combina archivos textuales del mismo tipo en un archivo más grande, lo que lo que reducen el número de archivos para descargar; comprime el archivo utilizando el algoritmo Zip, lo que hace que se descargue más rápidamente; finalmente, se almacena en caché el archivo comprimido, por lo que el servidor no tiene que hacer este proceso cada vez que se carga una página, lo que alivia la carga sobre el procesador del servidor.

Servidores de medios (utilizar solamente cuando CCC está activado)

Esta sección le permite redirigir parte de su tráfico (imágenes y archivos de vídeo, por ejemplo) a otros servidores bajo su control, a través de otros dominios o subdominios – generalmente, los archivos están alojados en un CDN (Content Delivery Network). Por defecto, De forma predeterminada, PrestaShop admite un servidor de medios.

Putting your store's domain name in this field is not the proper way to get fantastic performance. That being said, it is easy to set up a media server, and the benefits are real and almost immediate. Here is how:

  1. Open an account at a new host, preferably one who is a specialist of distributed content. The most popular are Akamai (http://www.akamai.com/), Amazon (with its AWS services, among which is CloudFront: http://aws.amazon.com/) or CloudFlare (http://www.cloudflare.com/). You should also ask your own host, maybe it has a CDN service you can subscribe to.
  2. Copy your media files to that host's server. This means that the CDN server must contain an exact copy of the following folders from you store's main server: /img/themes and /modules.
    Reminder: you must make it so that these folders are always synchronized: even if you add new products or change your theme, the CDN server must contain the latest version of all these files.
  3. Once the CDN server is in place, add the web address (as given by your CDN host) in the field, "Media server #1". If that host allows for more web addresses, add them.

In case you would rather that your files are still visually downloaded from your domain name rather that from an unknown domain name, follow this process:

  1. Create a subdomain for your store's domain name, for instance http://cdn1.example.com (the way to do that depend on your host, ask him about it).
  2. Put a .htaccess file at the root of the subdomain. That file should contain a single line:

    Redirect Permanent / http://cdn-adress.com


    Replace the http://cdn-adress.com with the one from your CDN server. This way, you are creating an automatic redirection from your subdomain to your CDN server.

  3. Once the subdomain is in place, add it in the first field, "Media server #1". If that host allows for more web addresses, create as many subdomains to your store's main domain name.

Even if you do not have a CDN server, you can use the media server feature to have the customer's browser download more files at a time, thus making the whole page loading process faster:

  1. Configure your web server to have virtual subdomains, such as images1.example.comimages2.example.com, and images3.example.com, pointing to PrestaShop's main folder.
  2. In your back office's Performance page, set each "Media server" field to these virtual subdomains.

Once this is in place, PrestaShop will load your images from either of these subdomains. In effect, images will come from the some folder (the main one), but the browser will open several more connection threads to your web server than it would by default, thus making the whole page load faster.

Caching

Your server's cache stores static versions of your dynamic web page, in order to serve these to your customers and thus reduce server load and compiling time.

Most of the time, you should first check with your web host about this setting, as it requires special settings on the server.

This section enables you to choose to enable caching, and then choose the caching method: