{"id":1531,"date":"2019-11-27T10:59:08","date_gmt":"2019-11-27T09:59:08","guid":{"rendered":"https:\/\/www.combell.nl\/nl\/help\/?post_type=ht_kb&#038;p=1531"},"modified":"2021-04-27T10:48:55","modified_gmt":"2021-04-27T08:48:55","slug":"performance-hosting-met-magento","status":"publish","type":"ht_kb","link":"https:\/\/www.combell.nl\/nl\/help\/kb\/performance-hosting-met-magento\/","title":{"rendered":"Performance hosting met Magento"},"content":{"rendered":"<p>Magento is een van de populairste CMS voor e-commerce. Het kan zowel grote als kleine webwinkels aan, mits wat optimalisering. Dit artikel zal je helpen om jouw CMS voor te bereiden zodat het grote hoeveelheden verkeer aankan zonder aan snelheid in te boeten.<\/p>\n<p><a href=\"https:\/\/www.combell.nl\/nl\/help\/kb\/magento-algemene-optimalisering\/\">Het eerste deel van dit artikel<\/a> zal je de standaard optimaliseringstechnieken tonen, die voor elke hosting geschikt zijn, zelfs wanneer je geen gebruik maakt van de caching opties.<\/p>\n<p>Pas Nadat je de algemenen optimalisering afgerond hebt, kan je overgaan naar het tweede deel van het artikel. Daarin wordt getoond hoe jouw CMS kan profiteren van de Performance hosting tools.<\/p>\n<hr \/>\n<h3 id=\"inhoudsopgave\">Inhoudsopgave:<\/h3>\n<ul>\n<li><a href=\"#h2\">Performance hosting<\/a>\n<ul>\n<li><a href=\"#h21\">Een Redis instantie aanzetten<\/a><\/li>\n<li><a href=\"#h22\">Installeren en configureren van Lesti<em>fpc met modman<\/em><\/a>\n<ul>\n<li><a href=\"#h221\">Compatibiliteit en voorbereiding:<\/a><\/li>\n<li><a href=\"#h222\">Modman<\/a>\n<ul>\n<li><a href=\"#h2221\">symlinks toelaten<\/a><\/li>\n<li><a href=\"#h2222\">Installeren<\/a><\/li>\n<li><a href=\"#h2223\">Initi\u00ebren<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#h223\">Installatie van Lestifpc<\/a><\/li>\n<li><a href=\"#h224\">Cm<em>Cache<\/em>Backend<em>Redis<\/em><\/a><\/li>\n<li><a href=\"#h225\">Een Redis instantie activeren<\/a><\/li>\n<li><a href=\"#h226\">Aanmaken en bewerken van fpc.xml<\/a><\/li>\n<li><a href=\"#h227\">Wijzigen van local.xml<\/a><\/li>\n<li><a href=\"#h228\">Wijzigen van CmRedisSession.xml<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#h23\">Aanzetten van Fpc Full Page Cache<\/a><\/li>\n<li><a href=\"#h24\">Problemen oplossen<\/a><\/li>\n<li><a href=\"#h25\">De cache opwarmen<\/a>\n<ul>\n<li><a href=\"#h251\">Installatie van n98<\/a><\/li>\n<li><a href=\"#h252\">Activeren van n98<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<p><a name=\"h2\"><\/a><\/p>\n<h3>Performance hosting voor Magento<\/h3>\n<p>Dit artikel toont je hoe je jouw Magento kunt configureren zodat hij werkt met jouw Performance hosting account.<\/p>\n<p>Wanneer je de [standaard optimalisering] uitgevoerd hebt en jij of jouw klanten hebben nog meer performantie nodig, dan kan de performantie van Magento beduidend verbeterd worden door een Redis instantie te implementeren met Full Page Caching.<\/p>\n<p><a name=\"h21\"><\/a><\/p>\n<h4>Een Redis instantie activeren<\/h4>\n<p>Hiervoor moet je eerst <a href=\"https:\/\/www.combell.nl\/nl\/help\/kb\/caching-activeren-op-je-webhosting\/\">een Redis instantie aankopen\/activeren<\/a>.<\/p>\n<p>De grootte van de instantie is afhankelijk van het aantal pagina&#8217;s dat gechached moet worden, en dat varieert van site tot site.<\/p>\n<p>Meestal zal een instantie van 64M of 128M volstaan.<\/p>\n<p><a name=\"h22\"><\/a><\/p>\n<h4>Lesti_fpc installeren en configureren met modman<\/h4>\n<p><a name=\"h221\"><\/a><\/p>\n<h5>Compatibiliteit en voorbereiding:<\/h5>\n<ul>\n<li>Lesti_fpc kan gebruikt worden in combinatie met Redis (key value store).<\/li>\n<li>Maar Ramdisk zou verwijderd moeten worden (indien het gebruikt werd).<\/li>\n<li>De www\/[magento]\/var\/cache map moet geleegd worden.<\/li>\n<\/ul>\n<p><a name=\"h222\"><\/a><\/p>\n<h5>Modman:<\/h5>\n<p><a name=\"h2221\"><\/a><\/p>\n<h6>Het toestaan van symlinks:<\/h6>\n<p>In de Magento back-end ga je naar:<\/p>\n<p>System &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 wp-image-4436 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento1.png\" alt=\"\" width=\"651\" height=\"233\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4437 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento2.png\" alt=\"\" width=\"192\" height=\"434\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4438\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento3.png\" alt=\"\" width=\"222\" height=\"127\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4439 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento4.png\" alt=\"\" width=\"1126\" height=\"128\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4440\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento5.png\" alt=\"\" width=\"110\" height=\"28\" \/><\/p>\n<p><a name=\"h2222\"><\/a><\/p>\n<h6>Installeren:<\/h6>\n<p>Ga nu terug naar de terminal of commandoprompt, verbonden met het hosting pakket.<\/p>\n<p>Controleer dat je je in de juiste map bevindt, zoniet zou je grote problemen kunnen tegenkomen!<\/p>\n<p><strong>Je moet de commando&#8217;s uitvoeren vanuit jouw Magento map, in dit geval is Magento ge\u00efnstalleerd in 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-4441\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento6.png\" alt=\"\" width=\"105\" height=\"93\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4442 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento7.png\" alt=\"\" width=\"733\" height=\"88\" \/><\/p>\n<p><a name=\"h2223\"><\/a><\/p>\n<h6>Initi\u00ebren:<\/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 wp-image-4443 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento8.png\" alt=\"\" width=\"587\" height=\"32\" \/><\/p>\n<p><a name=\"h223\"><\/a><\/p>\n<h5>Installatie van Lesti_fpc:<\/h5>\n<p>Enter the following commands in your terminal or command prompt:<\/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 wp-image-4444 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento9.png\" alt=\"\" width=\"829\" height=\"213\" \/><\/p>\n<p><a name=\"h224\"><\/a><\/p>\n<h5>Cm<em>Cache<\/em>Backend_Redis:<\/h5>\n<p>Installeer nu 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 wp-image-4445 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento10.png\" alt=\"\" width=\"949\" height=\"225\" \/><\/p>\n<p><a name=\"h225\"><\/a><\/p>\n<h5>Activeren van een Redis instantie:<\/h5>\n<p>Hierna <a href=\"https:\/\/www.combell.nl\/nl\/help\/kb\/caching-activeren-op-je-webhosting\/\">activeert u een Redis instantie via het portaal<\/a><\/p>\n<ul>\n<li>Name: DITISDENAAMVANDEREDISINSTANTIE<\/li>\n<li>Size: 256MB<\/li>\n<li>Password: DITISUWREDISPASWOORD<\/li>\n<li>IP address: DITISUWREDISIPADRES<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4446 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento11.png\" alt=\"\" width=\"967\" height=\"641\" \/><\/li>\n<\/ul>\n<p><a name=\"h226\"><\/a><\/p>\n<h5>Cre\u00ebren en wijzigen van fpc.xml<\/h5>\n<p>Keer terug naar jouw terminal. Cre\u00eber en wijzig jouw fpc.xml bestand zoals hieronder. Pas de content van het bestand aan en sla het op.<\/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>Let op: je moet de details aan jouw eigen configuratie aanpassen, en ervoor zorgen dat je de correcte server, poort en wachtwoord invult.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4447 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento12.png\" alt=\"\" width=\"973\" height=\"551\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4448 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento13.png\" alt=\"\" width=\"607\" height=\"388\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Nadien test je de verbinding met de Redis server vanuit de SSH jail. De Redis-cli is nu bereikbaar op de gedeelde SSH jails. Je moet de SSH resetten om ze te kunnen gebruiken. Zodra dit gedaan is kan je de Redis-cli gebruiken:<\/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><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4449 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento14.png\" alt=\"\" width=\"639\" height=\"58\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><a name=\"h227\"><\/a><\/p>\n<h5>Wijzig local.xml<\/h5>\n<p>&nbsp;<\/p>\n<p>Nu passen we het local.xml aan:<\/p>\n<p>&nbsp;<\/p>\n<p><code>nano app\/etc\/local.xml<\/code><\/p>\n<p>&nbsp;<\/p>\n<p>En tussen de cache tags, waar je normaal de APC vindt, plak je de volgende code (ook hier weer: let op dat je de juiste server IP, poort en wachtwoord gebruikt).<\/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 wp-image-4450 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento15.png\" alt=\"\" width=\"537\" height=\"15\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4451 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento16.png\" alt=\"\" width=\"305\" height=\"58\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4452 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento17.png\" alt=\"\" width=\"815\" height=\"259\" \/><\/p>\n<p><a name=\"h228\"><\/a><\/p>\n<h5>Wijzig Cm<em>RedisSession.xml<\/em><\/h5>\n<p>Vervolgens activeer je CmRedisSession.xml<\/p>\n<p><code>nano app\/etc\/modules\/Cm_RedisSession.xml<\/code><\/p>\n<p>Wijzig False naar True:<\/p>\n<p><code>&lt;active&gt;true&lt;\/active&gt;<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4453 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento18.png\" alt=\"\" width=\"664\" height=\"16\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4454 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento19.png\" alt=\"\" width=\"263\" height=\"121\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4455\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento20.png\" alt=\"\" width=\"262\" height=\"121\" \/><\/p>\n<p>Nu je dit alles geconfigureerd hebt, ga je terug naar de back-end van Magento en voer je nog een paar aanpassingen uit aan de cache.<\/p>\n<p><a name=\"h23\"><\/a><\/p>\n<h4>Activeer Fpc Full Page Cach<\/h4>\n<p>In de Magento back-end ga je naar System &gt;&gt; Cache management<\/p>\n<pre><code> Fpc Full Page Cache =&gt; Enable \/ activeren\n\n Alle andere cache =&gt; aan laten\n<\/code><\/pre>\n<p><a href=\"#h24\">Problemen oplossen<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4456 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento21.png\" alt=\"\" width=\"191\" height=\"433\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4457 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento22.png\" alt=\"\" width=\"1371\" height=\"27\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4458\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento23.png\" alt=\"\" width=\"91\" height=\"83\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4459\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento24.png\" alt=\"\" width=\"67\" height=\"31\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4460 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento25.png\" alt=\"\" width=\"1382\" height=\"275\" \/><\/p>\n<p><a name=\"h24\"><\/a><\/p>\n<h4>Problemen oplossen<\/h4>\n<p>Zie je de FPC Full Page Cache niet in de lijst, dan betekent dit dat je nog altijd cache gebruikt.<br \/>\nDie kan je legen door de cache map te legen:<\/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 wp-image-4461 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento26.png\" alt=\"\" width=\"514\" height=\"46\" \/><\/p>\n<p>Zie je nog altijd niet de FPC Full Page Cache in de lijst, dan betekent dat er iets fout is met jouw modules installaties 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 wp-image-4462 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento27.png\" alt=\"\" width=\"577\" height=\"86\" \/><\/p>\n<p>Zie je &#8216;Cm<em>Cache<\/em>Backend<em>Redis&#8217; en &#8216;Lesti<\/em>Fpc&#8217; hier niet in de lijst, dan weet je dat je de modules niet correct ge\u00efnstalleerd hebt.<br \/>\nTest of jouw Redis werkt met jouw CMS &#8211; je zou in staat moeten zijn om de Redis keys op te lijsten, door de volgende commando&#8217;s een na een uit te voeren. Zorg ervoor dat je host, poort en wachtwoord extra controleert:<\/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>Zie je hier geen keys, dan werkt jouw configuratie niet.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4463 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento28.png\" alt=\"\" width=\"634\" height=\"59\" \/><\/p>\n<p><a name=\"h25\"><\/a><\/p>\n<h4>De cache opwarmen.<\/h4>\n<p><a name=\"h251\"><\/a><\/p>\n<h5>Installeer n98<\/h5>\n<p>Indien Redis correct ge\u00efnstalleerd werd, kan je nu de cache opwarmen.<\/p>\n<p>Hiervoor installeren we 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 wp-image-4464 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento29.png\" alt=\"\" width=\"782\" height=\"328\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4465 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento30.png\" alt=\"\" width=\"993\" height=\"368\" \/><\/p>\n<p><a name=\"h252\"><\/a><\/p>\n<h5>Activeern98<\/h5>\n<p>Nadat n98 ge\u00efnstalleerd is, activeren we het.<\/p>\n<p>Opgelet: zorg ervoor dat je dit vanuit de Magento map doet!<\/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>Opgelet: waarde &#8216;1&#8243; kan soms &#8216;0&#8217; of &#8216;2&#8217; of &#8216;3&#8217; of hoger zijn. Dit is afhankelijk van de configuratie van de klant.<\/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 wp-image-4466 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento31.png\" alt=\"\" width=\"1133\" height=\"46\" \/><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4467 size-full\" src=\"https:\/\/www.combell.nl\/nl\/help\/wp-content\/uploads\/2019\/11\/Performance-hosting-met-Magento32.png\" alt=\"\" width=\"774\" height=\"20\" \/><\/p>\n<p>Nu zal de cache gaan opwarmen. Je zal dat zien wanneer je een andere shell opent om het commando &#8216;ps aux&#8221; uit te voeren. Je zal dan elk wget proces zien.<\/p>\n<p>Wanneer de processen niet meer verschijnen, dan weet je dat het klaar is.<\/p>\n<p>Controleer de keys in Redis &#8211; het aantal is verhoogd.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento is een van de populairste CMS voor e-commerce. Het kan zowel grote als kleine webwinkels aan, mits wat optimalisering. Dit artikel zal je helpen om jouw CMS voor te bereiden zodat het grote hoeveelheden verkeer aankan zonder aan snelheid in te boeten. Het eerste deel van dit artikel zal&#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.nl\/nl\/help\/wp-json\/wp\/v2\/ht-kb\/1531"}],"collection":[{"href":"https:\/\/www.combell.nl\/nl\/help\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.combell.nl\/nl\/help\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.combell.nl\/nl\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.combell.nl\/nl\/help\/wp-json\/wp\/v2\/comments?post=1531"}],"version-history":[{"count":3,"href":"https:\/\/www.combell.nl\/nl\/help\/wp-json\/wp\/v2\/ht-kb\/1531\/revisions"}],"predecessor-version":[{"id":3841,"href":"https:\/\/www.combell.nl\/nl\/help\/wp-json\/wp\/v2\/ht-kb\/1531\/revisions\/3841"}],"wp:attachment":[{"href":"https:\/\/www.combell.nl\/nl\/help\/wp-json\/wp\/v2\/media?parent=1531"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.combell.nl\/nl\/help\/wp-json\/wp\/v2\/ht-kb-category?post=1531"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.combell.nl\/nl\/help\/wp-json\/wp\/v2\/ht-kb-tag?post=1531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}