{"id":502719,"date":"2022-11-22T17:41:24","date_gmt":"2022-11-22T15:41:24","guid":{"rendered":"https:\/\/palmberg.io\/?post_type=kunskapsbank&#038;p=502719"},"modified":"2022-11-22T17:41:25","modified_gmt":"2022-11-22T15:41:25","slug":"sa-fungerar-servercache","status":"publish","type":"kb","link":"https:\/\/hexabyte.se\/en\/kb\/sa-fungerar-servercache\/","title":{"rendered":"This is how server cache works"},"content":{"rendered":"<p>When a visitor visits a website, the web server receives a series of tasks to perform in order to &quot;build together&quot; the finished website to be delivered to the visitor&#039;s browser. It all depends on which images are to be loaded, in which order and size, if it is a product page, the price and stock balance must be retrieved from the database and more.<\/p>\n\n\n\n<p>All this happens while the visitor waits for the page to load.<\/p>\n\n\n\n<p>In order for this whole process to go much faster, cache is used. It works so that when a user has let the web server &quot;build&quot; a specific page, the completed page is saved in a place that can be quickly retrieved by the next visitor. In this way, the next visitor does not have to let the web server &quot;build&quot; the entire page again.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The difference between cache plugin and server cache<\/h2>\n\n\n\n<p>To begin with, there is a difference between having a cache plugin in WordPress and letting the server manage cache. If you only use a cache plugin, the web server software still has to handle each request. While if man as we do on ours <a href=\"https:\/\/palmberg.io\/hosting\/\">hosting package<\/a> lets the web server control the cache, everything happens one step earlier. <\/p>\n\n\n\n<p>A server cache provides a faster website than a cache plugin. However, regular web hosts rarely offer server caching as it is a more complex function, which is not really suitable for shared environments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Increase the capacity of visitors your WordPress can handle<\/h2>\n\n\n\n<p>A good and correctly set cache not only makes your website faster, but it also means that your website will handle many more visitors at the same time. This is because the web server requires less resources to deliver a cached version of the website.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">We use Nginx FastCGI<\/h2>\n\n\n\n<p>Nginx is a great web server that delivers high capacity and fast websites. But it&#039;s not just us who use Nginx, it&#039;s also used by companies like Klarna, SVT and H&amp;M to name a few. (Source: <a href=\"https:\/\/trends.builtwith.com\/websitelist\/nginx\/Sweden\" target=\"_blank\" rel=\"noreferrer noopener\">builtwith.com<\/a>)<\/p>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1669130303617\"><strong class=\"schema-faq-question\">How do I turn on server caching on my website?<\/strong> <p class=\"schema-faq-answer\">If you do not have the option to turn on cache at the server level via an admin panel or to log in via SSH and install it, you must contact your hosting company. Not all web hosts offer server caching, but we do on ours <a href=\"https:\/\/palmberg.io\/hosting\/\">hosting package<\/a>.<br\/><br\/>Do you have questions about server cache on PALMBERG.io? <a href=\"https:\/\/palmberg.io\/kontakta-oss\/\">Contact Us<\/a><\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1669130484374\"><strong class=\"schema-faq-question\">Can I use both server cache and a cache plugin in WordPress?<\/strong> <p class=\"schema-faq-answer\">If you use a cache plugin in WordPress together with server cache, we recommend that you turn off the cache function in the plugin, in order to take advantage of other functions that the plugin has. It can be things like CSS, JS and HTML minification, optimization of images and more.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1669130825759\"><strong class=\"schema-faq-question\">Do I need a CDN for the website to be fast?<\/strong> <p class=\"schema-faq-answer\">No, if your visitors are located in Sweden and nearby, you will not earn anything appreciable from using a CDN service.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1669131017029\"><strong class=\"schema-faq-question\">How do I clear a server cache?<\/strong> <p class=\"schema-faq-answer\">Either via an admin panel at your hosting provider or you let the cache time expire.<\/p> <\/div> <\/div>","protected":false},"parent":0,"menu_order":0,"template":"","class_list":["post-502719","kb","type-kb","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>S\u00e5 fungerar servercache<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hexabyte.se\/en\/kb\/sa-fungerar-servercache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"S\u00e5 fungerar servercache\" \/>\n<meta property=\"og:description\" content=\"N\u00e4r en bes\u00f6kare bes\u00f6ker en hemsida s\u00e5 f\u00e5r webbservern en rad med uppgifter att utf\u00f6ra f\u00f6r att &#8221;bygga ihop&#8221; den f\u00e4rdiga hemsidan som ska levereras till bes\u00f6karens webbl\u00e4sare. Det \u00e4r allt ifr\u00e5n vilka bilder som ska laddas, i vilken ordning och storlek, \u00e4r det en produktsida s\u00e5 ska pris och lagersaldo h\u00e4mtas fr\u00e5n databasen med [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hexabyte.se\/en\/kb\/sa-fungerar-servercache\/\" \/>\n<meta property=\"og:site_name\" content=\"Hexabyte\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-22T15:41:25+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/\",\"name\":\"S\u00e5 fungerar servercache\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#website\"},\"datePublished\":\"2022-11-22T15:41:24+00:00\",\"dateModified\":\"2022-11-22T15:41:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669130303617\"},{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669130484374\"},{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669130825759\"},{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669131017029\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Hem\",\"item\":\"https:\\\/\\\/hexabyte.se\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Kunskapsbank\",\"item\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"S\u00e5 fungerar servercache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#website\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/\",\"name\":\"Hexabyte\",\"description\":\"Serverl\u00f6sningar\",\"publisher\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/hexabyte.se\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#organization\",\"name\":\"Hexabyte AB\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/hexabyte.se\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/hexabyte-clear.svg\",\"contentUrl\":\"https:\\\/\\\/hexabyte.se\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/hexabyte-clear.svg\",\"width\":318,\"height\":57,\"caption\":\"Hexabyte AB\"},\"image\":{\"@id\":\"https:\\\/\\\/hexabyte.se\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669130303617\",\"position\":1,\"url\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669130303617\",\"name\":\"Hur sl\u00e5r jag p\u00e5 servercache p\u00e5 min hemsida?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Har du inte m\u00f6jlighet att sl\u00e5 p\u00e5 cache p\u00e5 serverniv\u00e5 via en adminpanel eller att logga in via SSH och installera det s\u00e5 m\u00e5ste du kontakta ditt webbhotell. Det \u00e4r inte alla webbhotell som erbjuder servercache, men vi erbjuder det p\u00e5 v\u00e5ra <a href=\\\"https:\\\/\\\/palmberg.io\\\/hosting\\\/\\\">hostingpaket<\\\/a>.<br\\\/><br\\\/>Har du fr\u00e5gor om servercache p\u00e5 PALMBERG.io s\u00e5 <a href=\\\"https:\\\/\\\/palmberg.io\\\/kontakta-oss\\\/\\\">kontakta oss<\\\/a>\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669130484374\",\"position\":2,\"url\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669130484374\",\"name\":\"Kan jag anv\u00e4nda b\u00e5de servercache och en cache-plugin i WordPress?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Om du anv\u00e4nder en cache-plugin i WordPress tillsammans med servercache s\u00e5 rekommenderar vi att du st\u00e4nger av cache-funktionen i pluginet, f\u00f6r att dra nytta av andra funktioner som pluginet har. Det kan vara saker som CSS-, JS- och HTML-minifiering, optimering av bilder med mera.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669130825759\",\"position\":3,\"url\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669130825759\",\"name\":\"Beh\u00f6ver jag en CDN f\u00f6r att hemsidan ska bli snabb?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Nej, om dina bes\u00f6kare befinner sig i Sverige och n\u00e4rheten s\u00e5 kommer du inte att tj\u00e4na n\u00e5got m\u00e4rkbart p\u00e5 att anv\u00e4nda en CDN-tj\u00e4nst.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669131017029\",\"position\":4,\"url\":\"https:\\\/\\\/hexabyte.se\\\/kb\\\/sa-fungerar-servercache\\\/#faq-question-1669131017029\",\"name\":\"Hur rensar jag en servercache?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Antingen via en adminpanel hos din hostingleverant\u00f6r eller s\u00e5 l\u00e5ter du cache-tiden g\u00e5 ut.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"This is how server cache works","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:\/\/hexabyte.se\/en\/kb\/sa-fungerar-servercache\/","og_locale":"en_US","og_type":"article","og_title":"S\u00e5 fungerar servercache","og_description":"N\u00e4r en bes\u00f6kare bes\u00f6ker en hemsida s\u00e5 f\u00e5r webbservern en rad med uppgifter att utf\u00f6ra f\u00f6r att &#8221;bygga ihop&#8221; den f\u00e4rdiga hemsidan som ska levereras till bes\u00f6karens webbl\u00e4sare. Det \u00e4r allt ifr\u00e5n vilka bilder som ska laddas, i vilken ordning och storlek, \u00e4r det en produktsida s\u00e5 ska pris och lagersaldo h\u00e4mtas fr\u00e5n databasen med [&hellip;]","og_url":"https:\/\/hexabyte.se\/en\/kb\/sa-fungerar-servercache\/","og_site_name":"Hexabyte","article_modified_time":"2022-11-22T15:41:25+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/","url":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/","name":"This is how server cache works","isPartOf":{"@id":"https:\/\/hexabyte.se\/#website"},"datePublished":"2022-11-22T15:41:24+00:00","dateModified":"2022-11-22T15:41:25+00:00","breadcrumb":{"@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669130303617"},{"@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669130484374"},{"@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669130825759"},{"@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669131017029"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Hem","item":"https:\/\/hexabyte.se\/"},{"@type":"ListItem","position":2,"name":"Kunskapsbank","item":"https:\/\/hexabyte.se\/kb\/"},{"@type":"ListItem","position":3,"name":"S\u00e5 fungerar servercache"}]},{"@type":"WebSite","@id":"https:\/\/hexabyte.se\/#website","url":"https:\/\/hexabyte.se\/","name":"Hexabytes","description":"Server solutions","publisher":{"@id":"https:\/\/hexabyte.se\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hexabyte.se\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hexabyte.se\/#organization","name":"Hexabyte AB","url":"https:\/\/hexabyte.se\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hexabyte.se\/#\/schema\/logo\/image\/","url":"https:\/\/hexabyte.se\/wp-content\/uploads\/2023\/12\/hexabyte-clear.svg","contentUrl":"https:\/\/hexabyte.se\/wp-content\/uploads\/2023\/12\/hexabyte-clear.svg","width":318,"height":57,"caption":"Hexabyte AB"},"image":{"@id":"https:\/\/hexabyte.se\/#\/schema\/logo\/image\/"}},{"@type":"Question","@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669130303617","position":1,"url":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669130303617","name":"How do I turn on server caching on my website?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Har du inte m\u00f6jlighet att sl\u00e5 p\u00e5 cache p\u00e5 serverniv\u00e5 via en adminpanel eller att logga in via SSH och installera det s\u00e5 m\u00e5ste du kontakta ditt webbhotell. Det \u00e4r inte alla webbhotell som erbjuder servercache, men vi erbjuder det p\u00e5 v\u00e5ra <a href=\"https:\/\/palmberg.io\/hosting\/\">hostingpaket<\/a>.<br\/><br\/>Har du fr\u00e5gor om servercache p\u00e5 PALMBERG.io s\u00e5 <a href=\"https:\/\/palmberg.io\/kontakta-oss\/\">kontakta oss<\/a>","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669130484374","position":2,"url":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669130484374","name":"Can I use both server cache and a cache plugin in WordPress?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Om du anv\u00e4nder en cache-plugin i WordPress tillsammans med servercache s\u00e5 rekommenderar vi att du st\u00e4nger av cache-funktionen i pluginet, f\u00f6r att dra nytta av andra funktioner som pluginet har. Det kan vara saker som CSS-, JS- och HTML-minifiering, optimering av bilder med mera.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669130825759","position":3,"url":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669130825759","name":"Do I need a CDN for the website to be fast?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Nej, om dina bes\u00f6kare befinner sig i Sverige och n\u00e4rheten s\u00e5 kommer du inte att tj\u00e4na n\u00e5got m\u00e4rkbart p\u00e5 att anv\u00e4nda en CDN-tj\u00e4nst.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669131017029","position":4,"url":"https:\/\/hexabyte.se\/kb\/sa-fungerar-servercache\/#faq-question-1669131017029","name":"How do I clear a server cache?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Antingen via en adminpanel hos din hostingleverant\u00f6r eller s\u00e5 l\u00e5ter du cache-tiden g\u00e5 ut.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/hexabyte.se\/en\/wp-json\/wp\/v2\/kb\/502719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hexabyte.se\/en\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/hexabyte.se\/en\/wp-json\/wp\/v2\/types\/kb"}],"wp:attachment":[{"href":"https:\/\/hexabyte.se\/en\/wp-json\/wp\/v2\/media?parent=502719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}