{"id":497,"date":"2019-11-27T11:07:29","date_gmt":"2019-11-27T10:07:29","guid":{"rendered":"https:\/\/www.combell.com\/fr\/help\/?post_type=ht_kb&#038;p=497"},"modified":"2020-02-17T17:10:53","modified_gmt":"2020-02-17T16:10:53","slug":"hebergement-performance-avec-magento","status":"publish","type":"ht_kb","link":"https:\/\/www.combell.com\/fr\/help\/kb\/hebergement-performance-avec-magento\/","title":{"rendered":"H\u00e9bergement Performance avec Magento"},"content":{"rendered":"<p>Magento est un des SGC pour commerce \u00e9lectronique les plus populaires. Moyennant quelques petites optimisations, il est capable de parfaitement g\u00e9rer de petites et de grandes boutiques en ligne. Cet article vous aidera \u00e0 pr\u00e9parer votre SGC \u00e0 faire face \u00e0 d\u2019importantes quantit\u00e9s de trafic, sans faire de compromis au niveau de la vitesse.<\/p>\n<p><a href=\"https:\/\/www.combell.com\/fr\/help\/kb\/magento-optimisation-generale\/\">La premi\u00e8re partie de cet article<\/a> vous montrera des techniques d\u2019optimisation standards, applicables \u00e0 n\u2019importe quel h\u00e9bergement, m\u00eame si vous n\u2019utilisez pas les options de mise en cache.<\/p>\n<p>Ce n\u2019est que lorsque vous aurez termin\u00e9 l\u2019optimisation g\u00e9n\u00e9rale que vous pourrez vous attaquer \u00e0 la seconde partie de l\u2019article, qui vous montre comment votre SGC peut tirer profit des outils de l\u2019h\u00e9bergement Performance.<\/p>\n<hr \/>\n<h3 id=\"tabledesmatires\">Table des mati\u00e8res:<\/h3>\n<ul>\n<li><a href=\"#h2\">H\u00e9bergement Performance<\/a>\n<ul>\n<li><a href=\"#h21\">Activer une instance Redis<\/a><\/li>\n<li><a href=\"#h22\">Installer et configurer Lesti<em>fpc avec modman<\/em><\/a>\n<ul>\n<li><a href=\"#h221\">Compatibilit\u00e9 et pr\u00e9paration:<\/a><\/li>\n<li><a href=\"#h222\">Modman<\/a>\n<ul>\n<li><a href=\"#h2221\">Autoriser les symlinks<\/a><\/li>\n<li><a href=\"#h2222\">Installer<\/a><\/li>\n<li><a href=\"#h2223\">Lancer<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#h223\">Installer Lestifpc<\/a><\/li>\n<li><a href=\"#h224\">Cm<em>Cache<\/em>Backend<em>Redis<\/em><\/a><\/li>\n<li><a href=\"#h225\">Activer une instance Redis<\/a><\/li>\n<li><a href=\"#h226\">Cr\u00e9er\/modifier fpc.xml<\/a><\/li>\n<li><a href=\"#h227\">Modifier local.xml<\/a><\/li>\n<li><a href=\"#h228\">Modifier CmRedisSession.xml<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#h23\">Activer le cache de pages enti\u00e8res Fpc<\/a><\/li>\n<li><a href=\"#h24\">R\u00e9solution des probl\u00e8mes<\/a><\/li>\n<li><a href=\"#h25\">Faire un warm-up du cache<\/a>\n<ul>\n<li><a href=\"#h251\">Installer n98<\/a><\/li>\n<li><a href=\"#h252\">Activer n98<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<p><a name=\"h2\"><\/a><\/p>\n<h3>H\u00e9bergement Performance pour Magento<\/h3>\n<p>Cet article vous expliquera comment configurer votre Magento pour que ce dernier fonctionne avec votre compte d\u2019h\u00e9bergement Performance.<\/p>\n<p>Si vous avez appliqu\u00e9 les [optimisations standards] et que vous ou vos clients avez besoin d\u2019une configuration encore plus performance, les performances de Magento peuvent \u00eatre optimis\u00e9es de mani\u00e8re significative en impl\u00e9mentant une instance Redis avec mise en cache de pages enti\u00e8res.<\/p>\n<p><a name=\"h21\"><\/a><\/p>\n<h4>Activer une instance Redis<\/h4>\n<p>Pour ce faire, vous devrez <a href=\"https:\/\/www.combell.com\/fr\/help\/kb\/activez-la-mise-en-cache-sur-votre-hebergement-web\/\">acheter\/activer une instance Redis<\/a>.<\/p>\n<p>La taille de l\u2019instance d\u00e9pend du nombre de pages devant \u00eatre mises en cache \u2013 nombre qui diff\u00e8re d\u2019un site \u00e0 l\u2019autre.<\/p>\n<p>En g\u00e9n\u00e9ral, une instance de 64 Mo ou 128 Mo suffit.<\/p>\n<p><a name=\"h22\"><\/a><\/p>\n<h4>Installer et configurer Lesti_fpc avec modman<\/h4>\n<p><a name=\"h221\"><\/a><\/p>\n<h5>Compatibilit\u00e9 et pr\u00e9paration:<\/h5>\n<ul>\n<li>Lesti_fpc peut \u00eatre utilis\u00e9 avec Redis (key-value store).<\/li>\n<li>Mais Ramdisk doit \u00eatre supprim\u00e9 (s\u2019il a \u00e9t\u00e9 utilis\u00e9).<\/li>\n<li>Le r\u00e9pertoire www\/[magento]\/var\/cache doit \u00eatre vid\u00e9.<\/li>\n<\/ul>\n<p><a name=\"h222\"><\/a><\/p>\n<h5>Modman:<\/h5>\n<p><a name=\"h2221\"><\/a><\/p>\n<h6>Autoriser les symlinks:<\/h6>\n<p>Dans le back-end de Magento, allez dans:<br \/>\nSystem &gt;&gt; Configuration &gt;&gt; Advanced &gt;&gt; Developer &gt;&gt; Template Settings &gt;&gt; Allow symlinks<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4470\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento1-300x107.png\" alt=\"\" width=\"300\" height=\"107\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4471\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento2-133x300.png\" alt=\"\" width=\"133\" height=\"300\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4472\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento3.png\" alt=\"\" width=\"222\" height=\"127\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4473\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento4-300x34.png\" alt=\"\" width=\"300\" height=\"34\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4474\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento5.png\" alt=\"\" width=\"110\" height=\"28\" \/><\/p>\n<p><a name=\"h2222\"><\/a><\/p>\n<h6>Install:<\/h6>\n<p>Revenez ensuite dans le terminal ou l\u2019invite de commande en connexion avec le pack d\u2019h\u00e9bergement.<br \/>\nAssurez-vous que vous vous trouvez dans le bon r\u00e9pertoire, sans quoi vous risquez de cr\u00e9er de s\u00e9rieux probl\u00e8mes !<\/p>\n<p><strong>Vous devez ex\u00e9cuter les commandes depuis votre r\u00e9pertoire Magento ; dans le cas pr\u00e9sent, Magento est install\u00e9 \u00e0 l\u2019adresse www\/magento\/<\/strong><\/p>\n<p><code>cd ~\/www\/magento\/<\/code><br \/>\n<code>wget -q --no-check-certificate -O - https:\/\/raw.github.com\/colinmollenhour\/modman\/master\/modman-installer &gt; modman.sh<\/code><br \/>\n<code>chmod +x modman.sh<\/code><br \/>\n<code>.\/modman.sh<\/code><br \/>\n<code>Done. Modman installed in \/data\/sites\/web\/USER\/bin\/modman<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4475\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento6.png\" alt=\"\" width=\"105\" height=\"93\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4476\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento7-300x36.png\" alt=\"\" width=\"300\" height=\"36\" \/><\/p>\n<p><a name=\"h2223\"><\/a><\/p>\n<h6>Lancement:<\/h6>\n<p><code>~\/bin\/modman init<\/code><br \/>\n<code>Initialized Module Manager at \/data\/sites\/web\/ninefortwoperformancecom\/www\/magento<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4477\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento8-300x16.png\" alt=\"\" width=\"300\" height=\"16\" \/><\/p>\n<p><a name=\"h223\"><\/a><\/p>\n<h5>Installer Lesti_fpc:<\/h5>\n<p>Saisissez les commandes suivantes dans votre terminal ou invite de commande:<\/p>\n<p><code>~\/bin\/modman clone https:\/\/github.com\/GordonLesti\/Lesti_Fpc.git<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4478\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento9-300x77.png\" alt=\"\" width=\"300\" height=\"77\" \/><\/p>\n<p><a name=\"h224\"><\/a><\/p>\n<h5>Cm<em>Cache<\/em>Backend_Redis:<\/h5>\n<p>Maintenant, installez Cm<em>Cache<\/em>Backend_Redis<\/p>\n<p><code>~\/bin\/modman clone https:\/\/github.com\/colinmollenhour\/Cm_Cache_Backend_Redis.git<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4479\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento10-300x71.png\" alt=\"\" width=\"300\" height=\"71\" \/><\/p>\n<p><a name=\"h225\"><\/a><\/p>\n<h5>Activer une instance Redis:<\/h5>\n<p>Apr\u00e8s cela, <a href=\"https:\/\/www.combell.com\/fr\/help\/kb\/activez-la-mise-en-cache-sur-votre-hebergement-web\/\">activez une instance Redis via le My Combell<\/a><\/p>\n<ul>\n<li>Nom: CECIESTLENOMDELINSTANCEREDIS<\/li>\n<li>Taille: 256 Mo<\/li>\n<li>Mot de passe: CECIESTLEMOTDEPASSEDEVOTREREDIS<\/li>\n<li>Adresse IP: CECIESTLADRESSEIPDEVOTREREDIS<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4480\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento11-300x203.png\" alt=\"\" width=\"300\" height=\"203\" \/><\/li>\n<\/ul>\n<p><a name=\"h226\"><\/a><\/p>\n<h5>Cr\u00e9ez\/modifiez fpc.xml<\/h5>\n<p>Revenez \u00e0 votre terminal. Cr\u00e9ez\/modifiez votre fichier fpc.xml comme indiqu\u00e9 ci-dessous. Personnalisez le contenu du fichier et enregistrez.<\/p>\n<p><code>nano app\/etc\/fpc.xml<\/code><\/p>\n<p>~~~~~~<br \/>\n<!--?xml version=\"1.0\"?--><\/p>\n<p>86400 Cm<em>Cache<\/em>Backend<em>Redis<\/em><\/p>\n<p>THISISYOUREDISIPADDRESS<br \/>\nTHISISYOURREDISPORT 0 0<br \/>\nTHISISYOURREDISPASSWORD 0<br \/>\n1<br \/>\n86400 10<br \/>\n1<br \/>\n1<br \/>\ngzip<\/p>\n<p>LESTIFPC_ ~~~~~~<\/p>\n<p>&nbsp;<\/p>\n<p>Attention: Vous devez personnaliser les d\u00e9tails et vous assurer que vous avez correctement saisi le serveur, le port et le mot de passe.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4481\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento12-300x170.png\" alt=\"\" width=\"300\" height=\"170\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4482\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento13-300x192.png\" alt=\"\" width=\"300\" height=\"192\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Testez ensuite la connexion au serveur Redis depuis la prison SSH. Redis-cli est maintenant disponible sur les prisons SSH mutualis\u00e9es. Il est n\u00e9cessaire de r\u00e9initialiser le SSH pour pouvoir les utiliser. Une fois que cela a \u00e9t\u00e9 fait, vous pouvez utiliser Redis-cli:<\/p>\n<p>&nbsp;<\/p>\n<p><code>redis-cli -h THISISYOUREDISIPADDRESS -p THISISYOURREDISPORT<br \/>\n<\/code> <code>250.250.250.0:10000&gt; AUTH THISISYOURREDISPASSWORD<br \/>\n<\/code><code>OK<\/code><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4483\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento14-300x27.png\" alt=\"\" width=\"300\" height=\"27\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"h227\"><\/a><\/p>\n<h5>Modifier local.xml<\/h5>\n<p>Nous allons ensuite modifier le fichier local.xml:<\/p>\n<p>&nbsp;<\/p>\n<p><code>nano app\/etc\/local.xml<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>Et entre les tags du cache, l\u00e0 o\u00f9 vous aurez g\u00e9n\u00e9ralement l\u2019APC, collez le code suivant (Une fois de plus, faites attention \u00e0 l\u2019IP du serveur, au port et au mot de passe)<\/p>\n<p>&nbsp;<\/p>\n<pre><code>&lt;cache&gt;\n&lt;backend&gt;Cm_Cache_Backend_Redis&lt;\/backend&gt;\n&lt;backend_options&gt;\n&lt;server&gt;THISISYOUREDISIPADDRESS&lt;\/server&gt;\n&lt;port&gt;THISISYOURREDISPORT&lt;\/port&gt;\n&lt;database&gt;0&lt;\/database&gt;\n&lt;password&gt;THISISYOURREDISPASSWORD&lt;\/password&gt;\n&lt;force_standalone&gt;0&lt;\/force_standalone&gt; &lt;!-- 0 for phpredis, 1 for standalone PHP --&gt;\n&lt;connect_retries&gt;1&lt;\/connect_retries&gt; &lt;!-- Reduces errors due to random connection failures --&gt;\n&lt;automatic_cleaning_factor&gt;0&lt;\/automatic_cleaning_factor&gt; &lt;!-- Disabled by default --&gt;\n&lt;compress_data&gt;1&lt;\/compress_data&gt; &lt;!-- 0-9 for compression level, recommended: 0 or 1 --&gt;\n&lt;compress_tags&gt;1&lt;\/compress_tags&gt; &lt;!-- 0-9 for compression level, recommended: 0 or 1 --&gt;\n&lt;compress_threshold&gt;20480&lt;\/compress_threshold&gt; &lt;!-- Strings below this size will not be compressed --&gt;\n&lt;compression_lib&gt;gzip&lt;\/compression_lib&gt; &lt;!-- Supports gzip, lzf and snappy --&gt;\n&lt;persistent&gt;0&lt;\/persistent&gt; &lt;!-- persistence value, 0: not in use, &gt; 0 used as persistence ID --&gt;\n&lt;\/backend_options&gt;\n&lt;\/cache&gt;\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4484\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento15-300x8.png\" alt=\"\" width=\"300\" height=\"8\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4485\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento16-300x57.png\" alt=\"\" width=\"300\" height=\"57\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4486\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento17-300x95.png\" alt=\"\" width=\"300\" height=\"95\" \/><\/p>\n<p><a name=\"h228\"><\/a><\/p>\n<h5>Modifier Cm_RedisSession.xml<\/h5>\n<p>Activez ensuite Cm_RedisSession.xml<\/p>\n<p><code>nano app\/etc\/modules\/Cm_RedisSession.xml<\/code><\/p>\n<p>Changez False en True:<\/p>\n<p><code>&lt;active&gt;true&lt;\/active&gt;<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4487\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento18-300x7.png\" alt=\"\" width=\"300\" height=\"7\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4488\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento19.png\" alt=\"\" width=\"263\" height=\"121\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4489\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento20.png\" alt=\"\" width=\"262\" height=\"121\" \/><\/p>\n<p>Maintenant que tout ceci a \u00e9t\u00e9 configur\u00e9, vous devez revenir dans le back-end de Magento et apporter quelques modifications suppl\u00e9mentaires au cache.<\/p>\n<p><a name=\"h23\"><\/a><\/p>\n<h4>Activer le cache de pages enti\u00e8res Fpc<\/h4>\n<p>Dans le back-end de Magento, allez dans Syst\u00e8me &gt;&gt; Gestion du cache<\/p>\n<pre><code> Fpc Full Page Cache =&gt; Activer\n\n Tous les autres caches =&gt; Laissez-les activ\u00e9s\n<\/code><\/pre>\n<p><a href=\"#h24\">R\u00e9solution des probl\u00e8mes<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4490\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento21-132x300.png\" alt=\"\" width=\"132\" height=\"300\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4491\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento22-300x6.png\" alt=\"\" width=\"300\" height=\"6\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4492\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento23.png\" alt=\"\" width=\"91\" height=\"83\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4493\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento24.png\" alt=\"\" width=\"67\" height=\"31\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4494\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento25-300x60.png\" alt=\"\" width=\"300\" height=\"60\" \/><\/p>\n<p><a name=\"h24\"><\/a><\/p>\n<h4>R\u00e9solution des probl\u00e8mes<\/h4>\n<p>Si vous ne voyez pas le cache de pages enti\u00e8res FPC dans la liste, cela signifie que vous \u00eates toujours en train d\u2019utiliser le cache.<\/p>\n<p>Celui-ci peut \u00eatre vid\u00e9 en vidant le r\u00e9pertoire du cache:<\/p>\n<p><code>cd var\/cache\/<\/code><\/p>\n<p><code>rm -rf *<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4495\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento26-300x27.png\" alt=\"\" width=\"300\" height=\"27\" \/><\/p>\n<p>Si vous ne voyez toujours pas le cache de pages enti\u00e8res FPC dans la liste, cela signifie qu\u2019il y a un probl\u00e8me au niveau de l\u2019installation de vos modules via modman.<\/p>\n<p><code>cd ~\/www\/magento\/<\/code><br \/>\n<code>~\/bin\/modman list<\/code><br \/>\n<code>Cm_Cache_Backend_Redis<\/code><br \/>\n<code>Lesti_Fpc<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4496\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento27-300x45.png\" alt=\"\" width=\"300\" height=\"45\" \/><\/p>\n<p>Si vous ne voyez pas &lsquo;Cm<em>Cache<\/em>Backend<em>Redis&rsquo; et &lsquo;Lesti<\/em>Fpc&rsquo; dans la liste ici, cela signifie que vous n\u2019avez pas correctement install\u00e9 les modules.<\/p>\n<p>Testez si votre Redis fonctionne avec votre SGC; vous devriez pouvoir lister les cl\u00e9s de Redis en ex\u00e9cutant les commandes suivantes, l\u2019une apr\u00e8s l\u2019autre. Prenez soin de bien v\u00e9rifier l\u2019h\u00f4te, le port et le mot de passe:<\/p>\n<p><code>redis-cli -h THISISYOUREDISIPADDRESS -p THISISYOURREDISPORT<\/code><br \/>\n<code>250.250.250.0:10000&gt; AUTH THISISYOURREDISPASSWORD<\/code><br \/>\n<code>OK<\/code><br \/>\n<code>keys *<\/code><\/p>\n<p>Si vous ne voyez aucune cl\u00e9, cela signifie que la configuration ne fonctionne pas correctement.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4497\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento28-300x28.png\" alt=\"\" width=\"300\" height=\"28\" \/><\/p>\n<p><a name=\"h25\"><\/a><\/p>\n<h4>Faire un warm-up du cache.<\/h4>\n<p><a name=\"h251\"><\/a><\/p>\n<h5>Installer n98<\/h5>\n<p>Si Redis est impl\u00e9ment\u00e9 correctement, nous pouvons maintenant faire un warm-up du cache.<\/p>\n<p>Pour ce faire, il faut installer n98<\/p>\n<p><code>cd \/site\/bin<\/code><br \/>\n<code>git clone https:\/\/github.com\/netz98\/n98-magerun<\/code><br \/>\n<code>cd n98-magerun<\/code><br \/>\n<code>curl -s https:\/\/getcomposer.org\/installer | php<\/code><br \/>\n<code>php -f .\/composer.phar -- install<\/code><br \/>\n<code>cd ~\/www\/magento\/<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4498\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento29-300x126.png\" alt=\"\" width=\"300\" height=\"126\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4499\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento30-300x111.png\" alt=\"\" width=\"300\" height=\"111\" \/><\/p>\n<p><a name=\"h252\"><\/a><\/p>\n<h5>Activer n98<\/h5>\n<p>Et apr\u00e8s que n98 ait \u00e9t\u00e9 install\u00e9, il faut l\u2019activer.<\/p>\n<p><strong>Attention: veillez \u00e0 faire cela depuis le r\u00e9pertoire Magento<\/strong><\/p>\n<pre><code>\/site\/bin\/n98-magerun\/n98-magerun.phar sys:url:list --add-products --add-categories 1 &gt; \/site\/tmp\/crawl.txt\n<\/code><\/pre>\n<p>Attention : La valeur &lsquo;1&rsquo; peut parfois \u00eatre \u00e9gale \u00e0 &lsquo;0&rsquo; ou &lsquo;2&rsquo; ou &lsquo;3&rsquo; ou un chiffre plus \u00e9lev\u00e9. Cela d\u00e9pend de la configuration du client.<\/p>\n<pre><code>for i in `cat \/site\/tmp\/crawl.txt`; do wget -q $i; done\n<\/code><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4500\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento31-300x12.png\" alt=\"\" width=\"300\" height=\"12\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-4501\" src=\"https:\/\/www.combell.com\/fr\/help\/wp-content\/uploads\/2019\/11\/H\u00e9bergement-Performance-avec-Magento32-300x8.png\" alt=\"\" width=\"300\" height=\"8\" \/><\/p>\n<p>Le cache fera ainsi un warm-up. Vous verrez cela en ouvrant un autre shell pour ex\u00e9cuter la commande &lsquo;ps aux&rsquo;. Vous verrez ainsi chaque processus wget.<\/p>\n<p>Lorsque les processus arr\u00eatent d\u2019appara\u00eetre, cela signifie qu\u2019il est pr\u00eat.<\/p>\n<p>V\u00e9rifiez les cl\u00e9s dans Redis \u2013 leur nombre a augment\u00e9.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento est un des SGC pour commerce \u00e9lectronique les plus populaires. Moyennant quelques petites optimisations, il est capable de parfaitement g\u00e9rer de petites et de grandes boutiques en ligne. Cet article vous aidera \u00e0 pr\u00e9parer votre SGC \u00e0 faire face \u00e0 d\u2019importantes quantit\u00e9s de trafic, sans faire de compromis au&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[],"ht-kb-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/ht-kb\/497"}],"collection":[{"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":4,"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/ht-kb\/497\/revisions"}],"predecessor-version":[{"id":1442,"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/ht-kb\/497\/revisions\/1442"}],"wp:attachment":[{"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/media?parent=497"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/ht-kb-category?post=497"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.combell.com\/fr\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}