{"id":126,"date":"2014-07-22T08:01:00","date_gmt":"2014-07-22T12:01:00","guid":{"rendered":"https:\/\/www.thexyz.com\/blog\/2014\/07\/22\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/"},"modified":"2019-04-14T15:09:41","modified_gmt":"2019-04-14T19:09:41","slug":"speed-up-database-driven-sites-with-the-memcached-web-accelerator","status":"publish","type":"post","link":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/","title":{"rendered":"Speed Up Database-Driven Sites with the Memcached Web Accelerator"},"content":{"rendered":"<h2>\nThese days, websites are faced with the challenge of delivering a large amount of dynamic content to visitors in a shorter amount of time.<\/h2>\n<p>\nNormally, servers would load pages every time they are requested, which could have a slow-down effect on the speed at which a frequently accessed page is served to the visitor.<\/p>\n<p>Also, the repeated queries to the database server can lead to a non-cost-effective resource usage. Luckily, there are tools like Memcached that can help you streamline the data reading process and hence reduce the load on the server and the waste of valuable resources.<\/p>\n<h3>\nWhat is Memcached?&nbsp;<\/h3>\n<p>Basically, Memcached works as a caching layer between the requests of the visitors and the server itself.<br \/>\n<br \/>\nTechnically speaking, Memcached caches data and objects in the server\u2019s RAM so that the frequently requested data can be served directly from the memory instead of the database server\/API.<\/p>\n<p>\nYou can find Memcached in the Advanced section of your Web Hosting Control Panel. <\/p>\n<p>\nHere is an illustration of the way Memcached works during the first and each following request:<\/p>\n<h3>\n<span><span style=\"color: black; font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;\">First user request<\/span><\/span><\/h3>\n<p><span><span style=\"color: black; font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;\">When a user opens a page for the first time, the request is sent straight to the database server and, in the meantime, the data is stored in the Memcached server.&nbsp;<\/span><\/span> <br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png\" alt=\"memcached\" width=\"680\" height=\"348\" class=\"aligncenter size-full wp-image-1034\" srcset=\"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png 680w, https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1-300x154.png 300w, https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1-610x312.png 610w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/p>\n<h3>\n<span><span style=\"color: black; font-family: Arial; font-weight: bold; vertical-align: baseline; white-space: pre-wrap;\">Second user request<\/span><\/span><\/h3>\n<p><b><span><span style=\"color: black; font-family: Arial; vertical-align: baseline; white-space: pre-wrap;\">The next time the user makes a request for the same page, the data will be retrieved directly from the Memcached memory instead of the database server.<\/span><\/span><\/b><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-2.png\" alt=\"memcached\" width=\"680\" height=\"348\" class=\"aligncenter size-full wp-image-1036\" srcset=\"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-2.png 680w, https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-2-300x154.png 300w, https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-2-610x312.png 610w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><br \/>\nThis will significantly reduce the number of times a database is read and in the meantime will make pages load much faster.<\/p>\n<p>If you have a traffic-intensive, database-driven website like a large e-store, a busy blog, a news portal, etc., which serves hundreds of visitors per day, then using Memcached is indispensable.<\/p>\n<p>Memcached works as a caching layer for some of the most traffic-heavy sites such as YouTube, Reddit, Facebook, and Twitter. Some popular CMSs like Joomla and WordPress support it too.<\/p>\n<h3>\nHow to work with Memcached?<\/h3>\n<p>Working with Memcached requires a proper installation and a good control of its settings. This is why, we offer Memcached with all our web hosting plans, so our system will take care of the installation and the memory allocation procedures for you.<\/p>\n<p>Here is an example of how to create a basic Memcached instance on our servers:<\/p>\n<p>In the Thexyz Server Web Hosting Control Panel, select <b>Memcached<\/b> from the <b>Advanced<\/b> section and click on the <b>Create an instance<\/b> button on the top right.<\/p>\n<p>In the popup window, leave the Status as it is selected by default and then just select the memory allocation that you want to use for this instance.<\/p>\n<p>Memcached is included by default with all <a href=\"https:\/\/www.thexyz.com\/servers.html\">VPS Servers<\/a>.<\/p>\n<p>All other packages offer it as an upgrade option. Also, you can always upgrade the current Memcached memory quota of your plan from the Upgrade Services menu of the Control Panel.<\/p>\n<span class=\"et_bloom_bottom_trigger\"><\/span>","protected":false},"excerpt":{"rendered":"<p>These days, websites are faced with the challenge of delivering a large amount of dynamic content to visitors in a shorter amount of time. Normally, servers would load pages every time they are requested, which could have a slow-down effect on the speed at which a frequently accessed page is served to the visitor. Also, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1034,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[9],"tags":[],"class_list":["post-126","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-websites","et-has-post-format-content","et_post_format-et-post-format-standard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Speed Up Database-Driven Sites with the Memcached Web Accelerator - Thexyz Blog<\/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:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Speed Up Database-Driven Sites with the Memcached Web Accelerator - Thexyz Blog\" \/>\n<meta property=\"og:description\" content=\"These days, websites are faced with the challenge of delivering a large amount of dynamic content to visitors in a shorter amount of time. Normally, servers would load pages every time they are requested, which could have a slow-down effect on the speed at which a frequently accessed page is served to the visitor. Also, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/\" \/>\n<meta property=\"og:site_name\" content=\"Thexyz Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-22T12:01:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-14T19:09:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"680\" \/>\n\t<meta property=\"og:image:height\" content=\"348\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Thexyz Staff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/thexyz\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Thexyz Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/\"},\"author\":{\"name\":\"Thexyz Staff\",\"@id\":\"https:\/\/www.thexyz.com\/blog\/#\/schema\/person\/29825f4c97e9354f112a842f512b7b7b\"},\"headline\":\"Speed Up Database-Driven Sites with the Memcached Web Accelerator\",\"datePublished\":\"2014-07-22T12:01:00+00:00\",\"dateModified\":\"2019-04-14T19:09:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/\"},\"wordCount\":492,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png\",\"articleSection\":[\"Websites\"],\"inLanguage\":\"en-CA\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/\",\"url\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/\",\"name\":\"Speed Up Database-Driven Sites with the Memcached Web Accelerator - Thexyz Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.thexyz.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png\",\"datePublished\":\"2014-07-22T12:01:00+00:00\",\"dateModified\":\"2019-04-14T19:09:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.thexyz.com\/blog\/#\/schema\/person\/29825f4c97e9354f112a842f512b7b7b\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#breadcrumb\"},\"inLanguage\":\"en-CA\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-CA\",\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#primaryimage\",\"url\":\"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png\",\"contentUrl\":\"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png\",\"width\":680,\"height\":348,\"caption\":\"memcached\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.thexyz.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Speed Up Database-Driven Sites with the Memcached Web Accelerator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.thexyz.com\/blog\/#website\",\"url\":\"https:\/\/www.thexyz.com\/blog\/\",\"name\":\"Thexyz Blog\",\"description\":\"Email and Domains\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.thexyz.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-CA\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.thexyz.com\/blog\/#\/schema\/person\/29825f4c97e9354f112a842f512b7b7b\",\"name\":\"Thexyz Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-CA\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/487704f4a6dcb1afe72795093a1aaa5e5987c0bb5c3cf8dae185682ded562985?s=96&d=monsterid&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/487704f4a6dcb1afe72795093a1aaa5e5987c0bb5c3cf8dae185682ded562985?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/487704f4a6dcb1afe72795093a1aaa5e5987c0bb5c3cf8dae185682ded562985?s=96&d=monsterid&r=g\",\"caption\":\"Thexyz Staff\"},\"description\":\"Thexyz staff are passionate about helping people with email and website so they can get the most out the web. Our staff includes our support team, developers and any contractors that may be willing to contribute.\",\"sameAs\":[\"https:\/\/www.thexyz.com\",\"https:\/\/x.com\/https:\/\/twitter.com\/thexyz\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Speed Up Database-Driven Sites with the Memcached Web Accelerator - Thexyz Blog","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:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/","og_locale":"en_US","og_type":"article","og_title":"Speed Up Database-Driven Sites with the Memcached Web Accelerator - Thexyz Blog","og_description":"These days, websites are faced with the challenge of delivering a large amount of dynamic content to visitors in a shorter amount of time. Normally, servers would load pages every time they are requested, which could have a slow-down effect on the speed at which a frequently accessed page is served to the visitor. Also, [&hellip;]","og_url":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/","og_site_name":"Thexyz Blog","article_published_time":"2014-07-22T12:01:00+00:00","article_modified_time":"2019-04-14T19:09:41+00:00","og_image":[{"width":680,"height":348,"url":"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png","type":"image\/png"}],"author":"Thexyz Staff","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/thexyz","twitter_misc":{"Written by":"Thexyz Staff","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#article","isPartOf":{"@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/"},"author":{"name":"Thexyz Staff","@id":"https:\/\/www.thexyz.com\/blog\/#\/schema\/person\/29825f4c97e9354f112a842f512b7b7b"},"headline":"Speed Up Database-Driven Sites with the Memcached Web Accelerator","datePublished":"2014-07-22T12:01:00+00:00","dateModified":"2019-04-14T19:09:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/"},"wordCount":492,"commentCount":0,"image":{"@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png","articleSection":["Websites"],"inLanguage":"en-CA","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/","url":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/","name":"Speed Up Database-Driven Sites with the Memcached Web Accelerator - Thexyz Blog","isPartOf":{"@id":"https:\/\/www.thexyz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#primaryimage"},"image":{"@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png","datePublished":"2014-07-22T12:01:00+00:00","dateModified":"2019-04-14T19:09:41+00:00","author":{"@id":"https:\/\/www.thexyz.com\/blog\/#\/schema\/person\/29825f4c97e9354f112a842f512b7b7b"},"breadcrumb":{"@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#breadcrumb"},"inLanguage":"en-CA","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/"]}]},{"@type":"ImageObject","inLanguage":"en-CA","@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#primaryimage","url":"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png","contentUrl":"https:\/\/www.thexyz.com\/blog\/wp-content\/uploads\/memcached-1.png","width":680,"height":348,"caption":"memcached"},{"@type":"BreadcrumbList","@id":"https:\/\/www.thexyz.com\/blog\/speed-up-database-driven-sites-with-the-memcached-web-accelerator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thexyz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Speed Up Database-Driven Sites with the Memcached Web Accelerator"}]},{"@type":"WebSite","@id":"https:\/\/www.thexyz.com\/blog\/#website","url":"https:\/\/www.thexyz.com\/blog\/","name":"Thexyz Blog","description":"Email and Domains","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thexyz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-CA"},{"@type":"Person","@id":"https:\/\/www.thexyz.com\/blog\/#\/schema\/person\/29825f4c97e9354f112a842f512b7b7b","name":"Thexyz Staff","image":{"@type":"ImageObject","inLanguage":"en-CA","@id":"https:\/\/secure.gravatar.com\/avatar\/487704f4a6dcb1afe72795093a1aaa5e5987c0bb5c3cf8dae185682ded562985?s=96&d=monsterid&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/487704f4a6dcb1afe72795093a1aaa5e5987c0bb5c3cf8dae185682ded562985?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/487704f4a6dcb1afe72795093a1aaa5e5987c0bb5c3cf8dae185682ded562985?s=96&d=monsterid&r=g","caption":"Thexyz Staff"},"description":"Thexyz staff are passionate about helping people with email and website so they can get the most out the web. Our staff includes our support team, developers and any contractors that may be willing to contribute.","sameAs":["https:\/\/www.thexyz.com","https:\/\/x.com\/https:\/\/twitter.com\/thexyz"]}]}},"_links":{"self":[{"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/posts\/126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":2,"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":1037,"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/posts\/126\/revisions\/1037"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/media\/1034"}],"wp:attachment":[{"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thexyz.com\/blog\/wp-json\/wp\/v2\/tags?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}