{"id":5056,"date":"2021-11-10T09:31:46","date_gmt":"2021-11-10T09:31:46","guid":{"rendered":"https:\/\/magecloud.agency\/dk\/?p=5056"},"modified":"2022-08-16T08:02:03","modified_gmt":"2022-08-16T08:02:03","slug":"slaa-production-mode-til-magento-2","status":"publish","type":"post","link":"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/","title":{"rendered":"Min Magento 2 er langsom &#8211; Tjek om Production Mode sl\u00e5et til \u2192 Guide"},"content":{"rendered":"<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Der er desv\u00e6rre ikke nok opm\u00e6rksomhed p\u00e5 en vigtige ny feature i Magento 2: Modes. Vi oplever, at 70% af vores klienter har haft deres M2-site i <\/span><\/span><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> mode.\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<ul style=\"color: #333333; margin-left: 20px;\">\n<li style=\"list-style: square; margin-left: 20px; margin-top: 30px; margin-bottom: 15px;\"><span style=\"color: #333333;\"><b>OBS: Alle live Magento 2 sites b\u00f8r v\u00e6re i<\/b> <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> <\/span><strong>mode. <span style=\"font-weight: 400;\">Production mode cacher hele siden og tr\u00e6kker fra en fuldt udvidet <\/span><\/strong><code><span style=\"background-color: #f2f4f5;\">pub<\/span><\/code> <span style=\"font-weight: 400;\">folder. Dette giver den bedste brugeroplevelse, da denne tilstand er optimeret til at k\u00f8re stabilt og effektivt.<\/span><span style=\"font-weight: 400;\">\u00a0<span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> <\/span> mode er 20-30% hurtigere end <span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> mode.<\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Har du en <b>Magento 2 webshop<\/b>? Er du usikker p\u00e5 hvilket mode dit live site er i? Vi anbefaler at du verificerer, at dit site er i <\/span><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> mode.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>For dig der ikke er Magento n\u00f8rd, kan det resultere i mange sp\u00f8rgsm\u00e5l:<\/p>\n<p>&nbsp;<\/p>\n<ul style=\"color: #333333; margin-left: 30px;\">\n<li style=\"list-style: circle;\"><span style=\"color: #333333;\"><em><i><span style=\"font-weight: 400;\">Hvad er Magento modes?<\/span><\/i><\/em><\/span><\/li>\n<li style=\"list-style: circle;\"><span style=\"color: #333333;\"><em><i><span style=\"font-weight: 400;\">Hvordan kan jeg vide hvilket mode min webshop er i?<\/span><\/i><\/em><\/span><\/li>\n<li style=\"list-style: circle;\"><span style=\"color: #333333;\"><em><i><span style=\"font-weight: 400;\">Hvorfor og hvordan kan jeg skifte mode?<\/span><\/i><\/em><\/span><\/li>\n<\/ul>\n<h1 style=\"margin-top: 40px; margin-bottom: 20px; font-size: 40px;\"><span style=\"color: #333333;\"><strong><b>Hvad er Magento 2 modes?<\/b><\/strong><\/span><\/h1>\n<p><span style=\"font-weight: 400; color: #333333;\">Den store forskel mellem Magento 1 og Magento 2 er introduktionen af development modes. Magento 2 modes blev introduceret med udgivelsen af Magento 2. De er varierende konfigurationer af Magento kodebase, som p\u00e5virker drift og performance p\u00e5 et Magento 2 site.<\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Magento 1 havde kun en mode til b\u00e5de udvikling og produktion. Magento 2 har nu tre forskellige modes:<\/span> <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code>, <code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code>, og <span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code>.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"margin-top: 40px;\"><b>Hvilke Magento 2 modes findes der?<\/b><\/h3>\n<p><span style=\"color: #333333;\"><b>Magento har tre modes til anvendelse <\/b><span style=\"font-weight: 400;\">i et udviklings- eller produktionsmilj\u00f8: <\/span> <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code>, <code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> og <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> modes. <\/span><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code>\u00a0<span style=\"font-weight: 400;\">er klart den hurtigste. <\/span><code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code> og <code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> <span style=\"font-weight: 400;\">bruges til probleml\u00f8sning og b\u00f8r aldrig anvendes p\u00e5 et live site.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<ul style=\"color: #333333; margin-left: 30px;\">\n<li style=\"list-style: circle;\"><a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/config-guide\/bootstrap\/magento-modes.html#default-mode\" target=\"_blank\" rel=\"noopener noreferrer\"><strong><code>Default<\/code><\/strong><\/a><span style=\"color: #333333;\"> <span style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">\u2013<\/span><\/span> <span style=\"font-weight: 400;\">giver dig mulighed for at installere Magento p\u00e5 en enkelt server uden at \u00e6ndre indstillinger. Dette mode er ikke beregnet til et live site. Performer d\u00e5rligere end<\/span> <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code>.<\/span><\/li>\n<li style=\"list-style: circle;\"><a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/config-guide\/bootstrap\/magento-modes.html#developer-mode\" target=\"_blank\" rel=\"noopener noreferrer\"><strong><code>Developer<\/code><\/strong><\/a><span style=\"color: #333333;\"> <span style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">\u2013<\/span><\/span> <span style=\"font-weight: 400;\">kun beregnet til udvikling.<\/span><\/span><\/li>\n<li style=\"list-style: circle;\"><a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/config-guide\/bootstrap\/magento-modes.html#production-mode\" target=\"_blank\" rel=\"noopener noreferrer\"><strong><code>Production<\/code><\/strong><\/a><span style=\"color: #333333;\"> <span style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">\u2013<\/span><\/span> <span style=\"font-weight: 400;\">beregnet til n\u00e5r sitet skal \u201cGo Live\u201d og k\u00f8re med optimal drift.<\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Og <\/span><b>et mode til vedligeholdelse:<\/b><\/span><\/p>\n<ul style=\"color: #333333; margin-left: 30px;\">\n<li style=\"list-style: circle; margin-top: 8px;\"><a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/config-guide\/bootstrap\/magento-modes.html#developer-mode\" target=\"_blank\" rel=\"noopener noreferrer\"><strong><code>Maintenance<\/code><\/strong><\/a><span style=\"color: #333333;\"> <span style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">\u2013<\/span><\/span> <\/span><span style=\"font-weight: 400;\">forhindrer uautoriseret adgang til en Magento webshop under opdatering eller konfigurering.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4 style=\"font-size: 28px; margin-top: 80px; margin-bottom: 14px;\"><span style=\"color: #333333;\"><strong>Magento 2 Default Mode<\/strong><\/span><\/h4>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Som navnet antyder benyttes<\/span> <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code> <span style=\"font-weight: 400;\">mode n\u00e5r ingen anden mode er specificeret. Og det er m\u00e5ske derfor at den uforvarende benyttes p\u00e5 s\u00e5 mange Magento webshops. <\/span><code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code> mode <b>er kun tilt\u00e6nkt til brug f\u00f8rste gang man starter et Magento 2 site.<\/b><\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Default mode er en mellemting mellem<\/span> <code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> og <\/span><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code><\/span>. <span style=\"font-weight: 400;\">Den er indrettet til at forkorte opstartstiden for et standard Magento 2 site. Dette g\u00f8res ved at man kan udvikle uden at kompilere kode, samt at den indeholder et standardiseret s\u00e6t konfigurationer.<\/span><\/p>\n<ul style=\"color: #333333; margin-left: 20px; margin-top: 25px;\">\n<li style=\"list-style: square; margin-left: 20px;\"><span style=\"color: #333333;\">I <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code> mode er der ikke nogen hovedkarakteristika til produktion. Du b\u00f8r derfor skifte til\u00a0<code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> mode eller <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code>\u00a0mode.<\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 10px;\"><span style=\"color: #333333;\">Fejl vises ikke til brugeren. I <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code> <\/span>mode logges fejl i filrapporterne p\u00e5 serveren. Selv om debugging er muligt, er det langt fra ideelt.<\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 10px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">N\u00e5r man skifter fra <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code><\/span><span style=\"font-weight: 400;\">\u00a0til andet mode, kan man ikke fortryde, da<\/span> <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code> <span style=\"font-weight: 400;\">bliver utilg\u00e6ngelig. Det er ikke indrettet til brug i l\u00e6ngere tid, men har kun et form\u00e5l: At g\u00f8re det nemt at starte et Magento site.<\/span><\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 10px;\"><span style=\"font-weight: 400;\">Statiske filer materialiseres f\u00f8r de caches.<\/span> <span style=\"font-weight: 400;\">Det h\u00e6mmer performance.<\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 10px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">For hver filanmodning skabes et symlink i<\/span><strong>\u00a0<\/strong><code><span style=\"background-color: #f2f4f5;\">pub\/static<\/span><\/code> <span style=\"font-weight: 400;\">kataloget. I <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code> <\/span><span style=\"font-weight: 400;\">mode vil cachen derfor ikke blive udnyttet fuldt ud<\/span>. <span style=\"font-weight: 400;\">Siden leverer fortsat indhold dynamisk ved hver foresp\u00f8rgsel.<\/span><\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 15px;\"><span style=\"color: #333333;\">I <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code> <span style=\"font-weight: 400;\">kan du implementere Magento applikationen p\u00e5 en enkelt server uden at \u00e6ndre i indstillingerne<\/span>.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Dette kan f\u00f8re til en hurtigere lancering af sitet. Du vil dog i sidste ende spare mest tid p\u00e5 at udf\u00f8re modifikationer og vedligehold i <code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> mod<\/span><span style=\"font-weight: 400;\">e. Det skyldes de mere avancerede muligheder for udvikling, som beskrives n\u00e6rmere i n\u00e6ste afsnit.<\/span><\/span><\/p>\n<h4 style=\"font-size: 28px; margin-top: 80px; margin-bottom: 14px;\"><span style=\"color: #333333;\"><strong>Magento 2 <\/strong><\/span><span style=\"color: #333333;\"><strong>Developer Mode<\/strong><\/span><\/h4>\n<p><span style=\"color: #333333;\"><strong><b>Her kan Magento udviklerne udf\u00f8re alle deres udviklingsopgaver<\/b><span style=\"font-weight: 400;\">.<\/span>\u00a0<\/strong><code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code><strong> <span style=\"font-weight: 400;\">mode er kun beregnet til udvikling. Det er her, du b\u00f8r tilpasse og udvide Magento.<\/span><\/strong><\/span><\/p>\n<ul style=\"color: #333333; margin-left: 20px; margin-top: 25px;\">\n<li style=\"list-style: square; margin-left: 20px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Caching kan godt bruges i udviklertilstand. Det er typisk sl\u00e5et fra for at g\u00f8re udviklingstests hurtigere. Man f\u00e5r man i dette mode exceptionelt lave hastigheder i frontend delen og i Magento administration. Det skyldes ogs\u00e5 manglen p\u00e5 en<\/span>\u00a0<code><span style=\"background-color: #f2f4f5;\">\/pub<\/span><\/code> folder.\u00a0<\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 15px;\"><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> <span style=\"font-weight: 400;\">mode kompilerer automatisk kode. Det tillader ogs\u00e5 mere avanceret logning og debugging end i<\/span>\u00a0<code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code> eller <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code>. L<span style=\"font-weight: 400;\">ogfilerne har derudover flere detaljer.<\/span><br \/>\n<\/span><span style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">\u2013 Undtagelser vises i browseren og ikke kun i logfilen p\u00e5 serveren. Det er nemmere end, at man kun har fejlnummeret, og skal ind og kigge i loggen for at se hvilken fejl, der er opst\u00e5et.<\/span><\/span><br \/>\n<span style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">\u2013 Undtagelser vises ogs\u00e5 i browseren n\u00e5r event subscribers ikke kan kaldes. Det giver hurtigere debugging af problemer med moduler.<\/span><br \/>\n<\/span><\/li>\n<\/ul>\n<ul style=\"color: #333333; margin-left: 20px; margin-top: 25px;\">\n<li style=\"list-style: square; margin-left: 20px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Statiske filer skrives til Magent<\/span>o <code><span style=\"background-color: #f2f4f5;\">pub\/static<\/span><\/code><\/span><span style=\"font-weight: 400;\"> katalog hver gang de kaldes. De bliver aldrig cachet.<\/span><span style=\"color: #333333;\"><strong><br \/>\n<\/strong><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #333333;\">OBS: <\/span><\/strong><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Brug dette mode n\u00e5r du modificerer eller udvider Magento 2 standardfunktioner.<\/span><\/span><\/p>\n<h4 style=\"font-size: 28px; margin-top: 80px; margin-bottom: 14px;\"><span style=\"color: #333333;\"><strong>Magento 2 Production Mode<\/strong><\/span><\/h4>\n<p><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> <span style=\"font-weight: 400;\">mode er beregnet til drift i et produktionssystem. <\/span><b>Alle live sites skal have<\/b><strong>\u00a0<\/strong><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code><strong> mode.<\/strong> s<span style=\"font-weight: 400;\">Her anvendes fuld caching, som giver en stabil og hurtig drift for brugerne p\u00e5 sitet.<\/span><\/span><\/p>\n<ul style=\"color: #333333; margin-left: 20px; margin-top: 25px;\">\n<li style=\"list-style: square; margin-left: 20px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Statiske filer gemmes kun i cachen. Denne mode cacher hele siden samt en komplet<\/span> <code><span style=\"background-color: #f2f4f5;\">pub<\/span><\/code> mappe. <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code><\/span><span style=\"font-weight: 400;\">\u00a0mode er optimeret til at give den bedste kundeoplevelse. Hvis det er vigtigt for dig, <\/span><b>b\u00f8r du skifte din Magento webshop til dette mode<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 15px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Debugging er sv\u00e6rere i<\/span> <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code>. <span style=\"font-weight: 400;\">Det skyldes at<\/span><span style=\"font-weight: 400;\"> fejlene kun logges p\u00e5 serveren og ikke vises i frontend (browseren).<\/span><\/span><\/li>\n<\/ul>\n<ul style=\"color: #333333; margin-left: 20px; margin-top: 25px;\">\n<li style=\"list-style: square; margin-left: 20px;\"><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> mode uses full page caching with a fully built <code><span style=\"background-color: #f2f4f5;\">pub<\/span><\/code>\u00a0folder to pull from, which results in the smooth and efficient functioning of the store. If you are concerned about<strong> offering the best customer experience, you must switch your store to this mode.<\/strong>\u00a0<\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 15px;\"><span style=\"color: #333333;\"><strong><span style=\"font-weight: 400;\">N\u00e5r vi snakker sikkerhed,<\/span><b> er<\/b> <\/strong><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code><strong> <b>det mest sikre mode. <\/b><span style=\"font-weight: 400;\">Her oprettes ikke et symlink til<\/span><\/strong>\u00a0<code><span style=\"background-color: #f2f4f5;\">pub\/static<\/span><\/code> mappen. <\/span><span style=\"font-weight: 400;\">Hvis en uautoriseret bruger f\u00e5r adgang til <span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">pub\/static<\/span><\/code><\/span><\/span><span style=\"font-weight: 400;\">\u00a0for at \u00e6ndre disse data, bliver det kun dubletter af disse filer.\u00a0<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"color: #333333; margin-top: 14px;\"><b>To handlinger er essentielle<\/b><span style=\"font-weight: 400;\"> n\u00e5r du skal skifte mellem<\/span>\u00a0<code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> og<span style=\"color: #333333;\">\u00a0<code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> mode<\/span>:<\/p>\n<p style=\"color: #333333; margin-top: 12px;\">1. <strong>Static Deploy<\/strong> <span style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">\u2013<\/span><\/span>\u00a0<span style=\"font-weight: 400;\">dette fylder<\/span> <code><span style=\"background-color: #f2f4f5;\">pub\/static<\/span><\/code> <span style=\"font-weight: 400;\">mappen med indhold. Denne mappe bruger dit<\/span> <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> M2 <span style=\"font-weight: 400;\">site til at bygge og hente indhold fra.<\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\">2. <strong>Compilation<\/strong> <span style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">\u2013<\/span><\/span>\u00a0<span style=\"font-weight: 400;\">denne funktion tager sitets kode og komprimerer det til bytecode. Det betyder bl.a., at klasser hentes hurtigere, og at indl\u00e6sningshastigheden i frontend afkortes. Hvis en ondsindet bruger skulle f\u00e5 adgang til<\/span> <code>pub\/static<\/code> <span style=\"font-weight: 400;\">og lave \u00e6ndringer, s\u00e5 kan de kun \u00e6ndre dubletter af filerne. Og de bliver overskrevet ved n\u00e6ste statiske implementering.<\/span><\/p>\n<h2 class=\"entry-title\"><\/h2>\n<h3 style=\"margin-top: 60px; margin-bottom: 14px;\"><b>Hvordan tjekker man det nuv\u00e6rende Magento 2 mode?<\/b><\/h3>\n<p><span style=\"font-weight: 400;\"><span style=\"color: #333333;\">Selv om du ikke er en Magento n\u00f8rd, er det med vores guide nemt at tjekke hvilket mode dit Magento 2 site er i.<\/span> <\/span><\/p>\n<p style=\"color: #333333; margin-top: 60px;\"><span style=\"color: #333333;\"><b>Trin 1.<\/b><\/span><\/p>\n<p style=\"color: #333333; margin-top: 10px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Log p\u00e5 din server via SSH som<\/span> <\/span><a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/prereq\/file-sys-perms-over.html#magento-file-system-owner\" target=\"_blank\" rel=\"noopener noreferrer\">ejer af Magento filsystemet.<\/a><\/p>\n<ul style=\"color: #333333; margin-left: 30px; margin-top: 14px;\">\n<li style=\"list-style: circle;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Hvis du deler hosting med andre, s\u00e5 skal du bruge det brugernavn, som din Magento hosting udbyder har givet dig.<\/span><\/span><\/li>\n<li style=\"list-style: circle;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Hvis du har din egen server, er det typisk en lokal brugerkonto p\u00e5 Magento serveren.<\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p data-i18n=\"00-ZVEwIz7kTz\"><span style=\"font-weight: 400; color: #333333;\">Du skal bruge en SSH-klient p\u00e5 din computer.<\/span><\/p>\n<ul style=\"color: #333333; margin-left: 30px;\">\n<li style=\"list-style: circle;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">P\u00e5 Mac kan du bruge <\/span><b>Terminal<\/b><span style=\"font-weight: 400;\"> som er inkluderet i standardops\u00e6tningen. Det kunne ogs\u00e5 v\u00e6re en tredjepartsapp som <\/span> <\/span><a href=\"https:\/\/termius.com\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Termius<\/strong><\/a>.<\/li>\n<li style=\"list-style: circle;\"><span style=\"color: #333333;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">P\u00e5 Windows-computere kan du installere en tredjepartsapp som<\/span> <\/span><\/span><a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>PuTTY<\/strong><\/a>.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p style=\"margin-top: 14px;\"><span style=\"font-weight: 400; color: #333333;\">N\u00e5r du forbinder med SSH, s\u00e5 brug disse oplysninger:<\/span><\/p>\n<blockquote data-i18n=\"04-JdIp7Ts13N\">\n<p style=\"padding-left: 40px;\"><span style=\"color: #333333;\"><em>Host:<\/em> ssh.example.com<\/span><br \/>\n<span style=\"color: #333333;\"><em>Username:<\/em> example.com<\/span><br \/>\n<span style=\"color: #333333;\"><em>Password:<\/em> <span style=\"font-weight: 400;\">det som du valgte til SSH i dit kontrolpanel<\/span><\/span><br \/>\n<span style=\"color: #333333;\"><em>Port:<\/em>\u00a022<\/span><\/p>\n<\/blockquote>\n<p data-i18n=\"05-AuQtfAjoBh\"><span style=\"color: #333333;\"><strong>OBS:<\/strong> <span style=\"font-weight: 400;\">Husk at erstatte \u201cexample.com\u201d med dit eget dom\u00e6ne.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"color: #333333; margin-top: 20px;\"><b>Trin 2.<\/b><\/p>\n<p style=\"color: #333333; margin-top: 10px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Naviger til Magentos root-mappe. Typisk er dette<\/span> <code><span style=\"background-color: #f2f4f5;\">public_html<\/span><\/code>, <\/span><span style=\"font-weight: 400;\">men det er ikke altid tilf\u00e6ldet. Du kan altid tjekke hos din Magento hosting udbyder. De kan hj\u00e6lpe med at finde mappen.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"color: #333333; margin-top: 20px;\"><b>Trin 3.<\/b><\/p>\n<p style=\"color: #333333; margin-top: 10px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Find<\/span> <code><span style=\"background-color: #f2f4f5;\">\/bin<\/span><\/code><\/span><span style=\"font-weight: 400;\">\u00a0mappen i root-mappen.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"color: #333333; margin-top: 20px;\"><b>Trin 4.<\/b><\/p>\n<p style=\"color: #333333; margin-top: 10px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">K\u00f8r f\u00f8lgende kommando<\/span>: <code><span style=\"background-color: #f2f4f5;\">php bin\/magento deploy:mode:show<\/span><\/code> <\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">S\u00e5 kommer nedenst\u00e5ende meddelelse, der viser hvilket mode dit Magento 2 site k\u00f8rer i nu.<\/span><\/p>\n<p><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Current application mode: {mode}. (Note: Environment variables may override this value.)<\/span><\/code><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Her kan<\/span> <\/span><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\"><strong>{mode}<\/strong><\/span><\/code> <span style=\"font-weight: 400;\">v\u00e6re enten<\/span> <code><span style=\"background-color: #f2f4f5;\">Default<\/span><\/code>, <code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> or <code><span style=\"background-color: #f2f4f5;\">Production <\/span><\/code><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-5093\" src=\"https:\/\/magecloud.agency\/wp-content\/uploads\/2021\/02\/magento-mode-code.png\" alt=\"\" \/><\/p>\n<h2><\/h2>\n<p style=\"color: #333333; margin-top: 40px;\"><span style=\"font-weight: 400;\">Blev du klogere p\u00e5 hvilket mode dit site k\u00f8rer i?<\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Hvis det viser sig at du har et live site i<\/span>\u00a0<code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code><span style=\"font-weight: 400;\">\u00a0mode, kan det l\u00f8ses nemt. Men det kan desv\u00e6rre v\u00e6re tegn p\u00e5 et st\u00f8rre problem. Hvordan og hvorfor? Det beskriver vi n\u00e6rmere i n\u00e6ste afsnit.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"margin-top: 60px; margin-bottom: 14px;\"><span style=\"color: #333333;\"><b>Hvordan skifter man Magento mode?<\/b><\/span><\/h3>\n<p><span style=\"color: #333333;\"><b>OBS: <\/b><span style=\"font-weight: 400;\">Du b\u00f8r ikke foretage \u00e6ndringer p\u00e5 dit Magento 2 site i live versionen uden f\u00f8rst at have foretaget en test i et udviklingsmilj\u00f8.<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><b>Trin 1.<\/b><\/p>\n<p style=\"color: #333333; margin-top: 10px;\"><span style=\"font-weight: 400;\">Login p\u00e5 SSH-site server.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"color: #333333; margin-top: 20px;\"><b>Trin 2.<\/b><\/p>\n<p style=\"color: #333333; margin-top: 10px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Naviger til sidens root, og find mappen<\/span> <code><span style=\"background-color: #f2f4f5;\">\/bin<\/span><\/code>.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"color: #333333; margin-top: 20px;\"><b>Trin 3.<\/b><\/p>\n<p style=\"color: #333333; margin-top: 10px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">K\u00f8r f\u00f8lgende kommando:<\/span> <code><span style=\"background-color: #f2f4f5;\">php bin\/magento deploy:mode:set {mode} <em>[-s\/-skip-compilation]<\/em><\/span><\/code>\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400; color: #333333;\">hvor:<\/span><\/p>\n<ul>\n<li><span style=\"color: #333333;\"><span style=\"color: #333333;\"><code><\/code><\/span><\/span><span style=\"color: #333333;\"><span style=\"color: #333333;\"><code><\/code><\/span><\/span>\n<ul>\n<li><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\"><strong>{mode}<\/strong><\/span><\/code> <span style=\"font-weight: 400;\">er en p\u00e5kr\u00e6vet parameter <\/span>(<code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> eller <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code>);\u00a0<\/span><\/li>\n<li><span style=\"color: #333333;\"><strong><code><span style=\"background-color: #f2f4f5;\"><em>[-s\/-skip-compilation]<\/em><\/span><\/code> <span style=\"font-weight: 400;\">er en valgfri parameter. Den bruges til at springe kompilation over n\u00e5r man skifter til <\/span><\/strong><span style=\"background-color: #f2f4f5;\">Developer<\/span> mode.<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #333333;\"><span style=\"color: #333333;\"><code><\/code><\/span><\/span><\/p>\n<p><span style=\"color: #333333;\"><code><\/code><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">I kommandoen ovenfor kan du bruge v\u00e6rdierne<\/span> <code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> eller <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> <span style=\"font-weight: 400;\">til at skifte til det tilsvarende mode. N\u00e5r du har skiftet sitets mode og alt virker, vil du se f\u00f8lgende i konsollen:<\/span><span style=\"font-weight: 400;\">\u00a0<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"color: #333333; margin-top: 10px;\"><code><span style=\"background-color: #f2f4f5;\">Enabled developer mode.<\/span><\/code><span style=\"color: #333333;\"> <span style=\"font-weight: 400;\">eller<\/span> <\/span><code><span style=\"background-color: #f2f4f5;\">Enabled production mode.<br \/>\n<\/span><\/code><\/p>\n<p style=\"color: #333333; margin-top: 20px;\"><span style=\"font-weight: 400;\">Dette er <\/span><span style=\"font-weight: 400;\">simpelt i teorien. S\u00e5 f\u00e5r man nemt tanken &#8211; \u201chvorfor er mit Magento site ikke i<\/span>\u00a0<code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code><strong> <span style=\"font-weight: 400;\">mode?\u201d Et almindeligt problem: En v\u00e6sentlig fejl et sted i systemet, der bevirker, at sitet ikke virker, n\u00e5r kommandoen k\u00f8res. Det kan tage lidt tid for en udvikler at komme i bund i dette.<\/span><\/strong><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Derfor ser vi ofte udviklere efterlade et site i<\/span>\u00a0<code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code>\u00a0mode,<strong> <span style=\"font-weight: 400;\">s\u00e5 de ikke skal bruge tid &#8211; m\u00e5ske lang tid &#8211; p\u00e5 at finde problemet. Et problem, som tit viser sig at v\u00e6re et root problem, der kan v\u00e6re for\u00e5rsaget af d\u00e5rlig kode.<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"margin-top: 60px; margin-bottom: 22px;\"><b>Gode tips n\u00e5r du skifter mode<\/b><\/h3>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Hvad skal du v\u00e6re opm\u00e6rksom p\u00e5, n\u00e5r du vil skifte over til <\/span> <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code><strong>\u00a0<\/strong>mode:<\/span><\/p>\n<ul style=\"color: #333333; margin-left: 20px; margin-top: 25px;\">\n<li style=\"list-style: square; margin-left: 20px;\"><span style=\"font-weight: 400;\">Under ingen omst\u00e6ndigheder b\u00f8r du skifte mode midt p\u00e5 en dag, hvor folk handler. Du risikerer at din webshop m\u00e5 lukke helt i en periode.<\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 10px;\"><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Tag en fuld backup af Magentos filer og database inden du begynder skiftet. S\u00e5 har du noget at falde tilbage p\u00e5 hvis det g\u00e5r galt.<\/span><\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 10px;\"><span style=\"font-weight: 400;\">Ideelt b\u00f8r du fors\u00f8ge at g\u00f8re det i testversionen, s\u00e5 du har en ide om det vil fungere live. Selvf\u00f8lgelig er der altid variable der kan v\u00e6re forskellige fra servermilj\u00f8 til servermilj\u00f8.<\/span><\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 10px;\">\n<p style=\"color: #333333; margin-bottom: 10px;\"><span style=\"font-weight: 400;\">N\u00e5r du skifter fra<\/span>\u00a0<code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code> eller <code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code><strong>\u00a0<\/strong>mode, <span style=\"font-weight: 400;\">anbefaler vi at du t\u00f8mmer f\u00f8lgende mapper. Du b\u00f8r dog passe p\u00e5 med ikke at slette <code><span style=\"background-color: #f2f4f5;\">.htaccess<\/span><\/code><\/span> <span style=\"font-weight: 400;\">filerne, da de registrerer konfigurations\u00e6ndringer for hver mappe.<\/span><\/p>\n<ul style=\"color: #333333; margin-left: 30px;\">\n<li style=\"list-style-type: none;\">\n<ul style=\"color: #333333; margin-left: 30px;\">\n<li style=\"list-style: circle;\"><span style=\"color: #333333;\"><span style=\"color: #333333; font-family: 'courier new', courier, monospace;\"><code><span style=\"background-color: #f2f4f5;\">var\/cache<\/span><\/code><\/span><\/span><\/li>\n<li style=\"list-style: circle;\"><span style=\"color: #333333; font-family: 'courier new', courier, monospace;\"><code><span style=\"color: #333333;\"><span style=\"background-color: #f2f4f5;\">var\/di<\/span><\/span><\/code><\/span><\/li>\n<li style=\"list-style: circle;\"><span style=\"color: #333333; font-family: 'courier new', courier, monospace;\"><code><span style=\"color: #333333;\"><span style=\"background-color: #f2f4f5;\">pub\/static<\/span><\/span><\/code><\/span><\/li>\n<li style=\"list-style: circle;\"><span style=\"color: #333333; font-family: 'courier new', courier, monospace;\"><code><span style=\"color: #333333;\"><span style=\"background-color: #f2f4f5;\">var\/generation<\/span><\/span><\/code><\/span><\/li>\n<li style=\"list-style: circle;\"><span style=\"color: #333333; font-family: 'courier new', courier, monospace;\"><code><span style=\"color: #333333;\"><span style=\"background-color: #f2f4f5;\">var\/view_preprocessed<\/span><\/span><\/code><\/span><span style=\"color: #333333; font-family: 'courier new', courier, monospace;\"><code><\/code><\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/li>\n<li style=\"list-style: square; margin-left: 20px; margin-top: 10px;\"><span style=\"font-weight: 400;\">Nogle gange vil man under skift af mode opleve fejl der stopper skiftet. Disse fejl m\u00e5 identificeres og udbedres f\u00f8r man kan skifte mode.<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3 style=\"margin-top: 60px; margin-bottom: 14px;\"><b>Hvorfor du b\u00f8r sl\u00e5 Production Mode til<\/b><\/h3>\n<p style=\"color: #333333; margin-top: 12px;\"><code><span style=\"background-color: #f2f4f5;\">Developer<\/span><\/code><span style=\"font-weight: 400;\">\u00a0mode optimerer sitet. Det g\u00f8r det nemt for udvikleren at arbejde med og integrere nye \u00e6ndringer. Udvikleren kan se de nye \u00e6ndringer i frontend hurtigt, og der er f.eks. intet statisk indhold i cachen. Udvikleren kan lave \u00e6ndringer uden at k\u00f8re langvarige, tidsr\u00f8vende kommandoer. Kommandoer, der f.eks. opdaterer de filer der l\u00e6ses af browseren &#8211; dvs. opdaterer websitet.<\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Dette betyder dog at indl\u00e6sningshastigheden for den enkelte side stiger med 20-30% p\u00e5 grund af ovenst\u00e5ende tiltag. De g\u00f8r det nemmere for udvikleren at se de nye \u00e6ndringer hurtigt. Men udviklerens og brugerens behov er forskellige. Der er ikke noget statisk indhold, som i praksis virker som en cache for browseren s\u00e5 der ikke skal indl\u00e6ses s\u00e5 mange filer.<\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Dette er en stor svaghed, da en langsom webshop betyder d\u00e5rligere konvertering. Brugere, der er ut\u00e5lmodige eller p\u00e5 langsommere forbindelser vil forlade sitet &#8211; uden at gennemf\u00f8re deres k\u00f8b.<\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><strong><b>Det er klart at et live Magento 2 site skal v\u00e6re i<\/b> <\/strong><span style=\"color: #333333;\"><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code><\/span><strong>\u00a0mode.<\/strong><\/p>\n<p><span style=\"color: #333333;\"><span style=\"font-weight: 400;\">Jo f\u00f8r du skifter, jo bedre. Jo mindre sitet er tilpasset, desto nemmere er det at skifte det til <\/span><code><span style=\"background-color: #f2f4f5;\">Production<\/span><\/code> mode.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3 style=\"margin-top: 60px; margin-bottom: 14px;\">Opsamling<\/h3>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Nu b\u00f8r du have en bedre ide om forskellen mellem modes i Magento 1 og Magento 2. Du har ogs\u00e5 l\u00e6rt hvordan du verificerer hvilket mode dit Magento site benytter, og hvordan du skifter mode. At bruge de forskellige modes til Magento 2 giver nye muligheder i udviklingen. Det giver f\u00f8rst og fremmest bedre performance og funktionalitet. B\u00e5de i dag og i fremtiden.<\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Magento 2 kommer med forskellige features til at optimere performance. <\/span><b>Dit job er at konfigurere dem korrekt. <\/b><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Lad os vide, hvis du har sp\u00f8rgsm\u00e5l eller feedback. Vi er altid p\u00e5 udkig efter m\u00e5der hvorp\u00e5 vi kan bidrage til Magento Community bliver st\u00f8rre og dygtigere. <\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Vi vil ogs\u00e5 meget gerne fort\u00e6lle om, hvordan Magecloud kan hj\u00e6lpe din Magento webshop. F.eks. med at l\u00f8se sv\u00e6re problemer eller forbedre sitets performance. <\/span><\/p>\n<p style=\"color: #333333; margin-top: 12px;\"><span style=\"font-weight: 400;\">Kontakt os i dag<\/span><span style=\"font-weight: 400;\">, og snak helt uforpligtende med en ekspert om din forretning og dine behov.<\/span><\/p>\n<p>&nbsp;<\/p>\n<div class=\"button_bluetowhite\"><a href=\"https:\/\/meetings.hubspot.com\/betina-mikkelsen\" target=\"_blank\" rel=\"noopener noreferrer\">Book 30 minutters m\u00f8de med Betina<\/a><\/div>\n<div class=\"narrow\"><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"Der er desv\u00e6rre ikke nok opm\u00e6rksomhed p\u00e5 en vigtige ny feature i Magento 2: Modes. Vi oplever, at 70% af vores klienter har haft deres M2-site i Developer mode.\u00a0 &nbsp; OBS: Alle live Magento 2 sites b\u00f8r v\u00e6re i Production mode. Production mode cacher hele siden og tr\u00e6kker fra en fuldt udvidet pub folder. Dette&hellip;","protected":false},"author":1,"featured_media":5060,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[20],"tags":[],"class_list":["post-5056","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento 2 er langsom \u00b7 Tjek om Production Mode er sl\u00e5et til \u2192 Guide<\/title>\n<meta name=\"description\" content=\"Hvis Magento 2 er langsom og ydeevnen ringe. Tjek om Magento 2 er i Production Mode p\u00e5 live version. Hvis ikke neds\u00e6ttes ydeevnen med 20-30% &gt; Guide\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2 er langsom - Er Production Mode sl\u00e5et til?\" \/>\n<meta property=\"og:description\" content=\"Tjek om Magento 2 er sat i Production Mode p\u00e5 live version. Hvis ikke kan det sl\u00f8ve hastigheden med 20-30% &gt; S\u00e5dan l\u00f8ser du det\" \/>\n<meta property=\"og:url\" content=\"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"MageCloud DK\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-10T09:31:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-16T08:02:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"870\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Magento 2 er langsom - Er Production Mode sl\u00e5et til? Guide\" \/>\n<meta name=\"twitter:description\" content=\"Tjek om Magento 2 er sat i Production Mode p\u00e5 live version. Hvis ikke kan det sl\u00f8ve hastigheden med 20-30% &gt; S\u00e5dan l\u00f8ser du det\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/\",\"url\":\"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/\",\"name\":\"Magento 2 er langsom \u00b7 Tjek om Production Mode er sl\u00e5et til \u2192 Guide\",\"isPartOf\":{\"@id\":\"https:\/\/magecloud.agency\/dk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg\",\"datePublished\":\"2021-11-10T09:31:46+00:00\",\"dateModified\":\"2022-08-16T08:02:03+00:00\",\"author\":{\"@id\":\"\"},\"description\":\"Hvis Magento 2 er langsom og ydeevnen ringe. Tjek om Magento 2 er i Production Mode p\u00e5 live version. Hvis ikke neds\u00e6ttes ydeevnen med 20-30% > Guide\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/#primaryimage\",\"url\":\"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg\",\"contentUrl\":\"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg\",\"width\":870,\"height\":400},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/magecloud.agency\/dk\/#website\",\"url\":\"https:\/\/magecloud.agency\/dk\/\",\"name\":\"MageCloud DK\",\"description\":\"Just another MageCloud Sites site\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/magecloud.agency\/dk\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"\",\"url\":\"https:\/\/magecloud.agency\/dk\/author\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento 2 er langsom \u00b7 Tjek om Production Mode er sl\u00e5et til \u2192 Guide","description":"Hvis Magento 2 er langsom og ydeevnen ringe. Tjek om Magento 2 er i Production Mode p\u00e5 live version. Hvis ikke neds\u00e6ttes ydeevnen med 20-30% > Guide","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Magento 2 er langsom - Er Production Mode sl\u00e5et til?","og_description":"Tjek om Magento 2 er sat i Production Mode p\u00e5 live version. Hvis ikke kan det sl\u00f8ve hastigheden med 20-30% > S\u00e5dan l\u00f8ser du det","og_url":"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/","og_site_name":"MageCloud DK","article_published_time":"2021-11-10T09:31:46+00:00","article_modified_time":"2022-08-16T08:02:03+00:00","og_image":[{"width":870,"height":400,"url":"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_title":"Magento 2 er langsom - Er Production Mode sl\u00e5et til? Guide","twitter_description":"Tjek om Magento 2 er sat i Production Mode p\u00e5 live version. Hvis ikke kan det sl\u00f8ve hastigheden med 20-30% > S\u00e5dan l\u00f8ser du det","twitter_image":"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg","twitter_misc":{"Written by":"","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/","url":"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/","name":"Magento 2 er langsom \u00b7 Tjek om Production Mode er sl\u00e5et til \u2192 Guide","isPartOf":{"@id":"https:\/\/magecloud.agency\/dk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg","datePublished":"2021-11-10T09:31:46+00:00","dateModified":"2022-08-16T08:02:03+00:00","author":{"@id":""},"description":"Hvis Magento 2 er langsom og ydeevnen ringe. Tjek om Magento 2 er i Production Mode p\u00e5 live version. Hvis ikke neds\u00e6ttes ydeevnen med 20-30% > Guide","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/magecloud.agency\/dk\/slaa-production-mode-til-magento-2\/#primaryimage","url":"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg","contentUrl":"https:\/\/magecloud.agency\/dk\/wp-content\/uploads\/sites\/3\/2021\/11\/magento-2-modes.jpg","width":870,"height":400},{"@type":"WebSite","@id":"https:\/\/magecloud.agency\/dk\/#website","url":"https:\/\/magecloud.agency\/dk\/","name":"MageCloud DK","description":"Just another MageCloud Sites site","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/magecloud.agency\/dk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"","url":"https:\/\/magecloud.agency\/dk\/author\/"}]}},"_links":{"self":[{"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/posts\/5056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/comments?post=5056"}],"version-history":[{"count":23,"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/posts\/5056\/revisions"}],"predecessor-version":[{"id":7017,"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/posts\/5056\/revisions\/7017"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/media\/5060"}],"wp:attachment":[{"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/media?parent=5056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/categories?post=5056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magecloud.agency\/dk\/wp-json\/wp\/v2\/tags?post=5056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}