{"id":4598,"date":"2023-03-09T11:40:50","date_gmt":"2023-03-09T11:40:50","guid":{"rendered":"https:\/\/www.hostinger.com\/blog\/?p=4598"},"modified":"2024-02-28T11:18:15","modified_gmt":"2024-02-28T11:18:15","slug":"litespeed-object-cache","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/blog\/litespeed-object-cache","title":{"rendered":"Make Your WordPress Site up to 3X Faster With LiteSpeed Object Cache"},"content":{"rendered":"<p>Did you know that your website&rsquo;s database can affect its performance? Too much data and too many files can put an extra load on the server when displaying your site to visitors.&nbsp;<\/p><p><strong>Object caching<\/strong> is one of the go-to solutions to reduce database queries. This essentially means that all database query results are stored on the server in a cache when a visitor lands on your website for the first time.<\/p><p>When a user reopens the same page, the server will use the data stored in the cache instead of sending a request to the database again, making the site load much faster.&nbsp;<\/p><p>We&rsquo;re proud to introduce LiteSpeed Object Cache to our tech stack. It works alongside the LiteSpeed Cache for WordPress (LSCWP) plugin, and can be enabled directly via hPanel.&nbsp;<\/p><h2 class=\"wp-block-heading\" id=\"h-built-in-and-hassle-free-object-caching\">Built-In and Hassle-Free Object Caching<\/h2><p>Object caching has always been supported by the LSCWP plugin, but it&rsquo;s not enabled by default. It requires an external functionality called LiteSpeed Memcached (LMCD) for it to be activated.&nbsp;<\/p><p>To help with the setup, we created an in-house solution based on LMCD. This way, you can simply go to hPanel and turn object caching in a single click.<\/p><p>But&nbsp;just how much can your website improve with LiteSpeed Object Cache?&nbsp;<\/p><p>We&rsquo;ve found that object caching can decrease response times in WordPress sites by <strong>up to three times<\/strong>. And since the server performs fewer database queries to display the website, there&rsquo;s less risk of downtime.&nbsp;<\/p><p>Here&rsquo;s the GTMetrix result of one of our test websites before object caching was active:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1540\" height=\"582\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-before-litespeed-object-cache.png\/public\" alt=\"GTMetrix results on a test website before LiteSpeed Object Cache was enabled\" class=\"wp-image-4600\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-before-litespeed-object-cache.png\/w=1540,fit=scale-down 1540w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-before-litespeed-object-cache.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-before-litespeed-object-cache.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-before-litespeed-object-cache.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-before-litespeed-object-cache.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1540px) 100vw, 1540px\" \/><\/figure><\/div><p>And here&rsquo;s how much its performance improved after we enabled LiteSpeed Object Cache. The performance score reached 100%, and the site&rsquo;s <a href=\"\/tutorials\/largest-contentful-paint\">Largest Contentful Paint (LCP)<\/a> time decreased by over 56%.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1540\" height=\"582\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-after-litespeed-object-cache.png\/public\" alt=\"GTMetrix results on a test website after LiteSpeed Object Cache was enabled\" class=\"wp-image-4601\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-after-litespeed-object-cache.png\/w=1540,fit=scale-down 1540w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-after-litespeed-object-cache.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-after-litespeed-object-cache.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-after-litespeed-object-cache.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/test-website-gtmetrix-results-after-litespeed-object-cache.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1540px) 100vw, 1540px\" \/><\/figure><\/div><p>LiteSpeed Object Cache also gives your site <strong>better scalability<\/strong>. That is, your website will be more capable of accommodating high traffic volumes, reducing the possibility of crashes during peak hours.<\/p><p>And naturally, the <a href=\"https:\/\/www.hostinger.com\/tutorials\/speed-up-wordpress\">faster your website loads<\/a>, the more likely it is that your visitors will stay on it &ndash; this leads to <strong>more engagement and higher conversion rates<\/strong>.&nbsp;<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-enable-litespeed-object-cache-on-hpanel\">How to Enable LiteSpeed Object Cache on hPanel<\/h2><p>LiteSpeed Object Cache is available with the following plans:<\/p><ul class=\"wp-block-list\">\n<li>Business Web Hosting<\/li>\n\n\n\n<li>Business WordPress<\/li>\n\n\n\n<li>WordPress Pro<\/li>\n\n\n\n<li>All Cloud Hosting plans<\/li>\n<\/ul><p>If you&rsquo;re using other <a href=\"https:\/\/hostinger.com\/web-hosting\" target=\"_blank\" rel=\"noopener\">Web Hosting<\/a> or <a href=\"https:\/\/hostinger.com\/wordpress-hosting\" target=\"_blank\" rel=\"noopener\">WordPress Hosting<\/a> plans, you have to upgrade to one of the packages above to access the feature.<\/p><p>To turn on LiteSpeed Object Cache, head to <strong>hPanel<\/strong> &rarr; <strong>Websites<\/strong> and select a website. On the sidebar menu, navigate to <strong>WordPress<\/strong> &rarr;<strong> Overview<\/strong>. In the <strong>Core <\/strong>section, enable <strong>Object Cache<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"1024\" height=\"710\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/enabling-litespeed-object-cache-on-hpanel.png\/public\" alt=\"How to enable LiteSpeed Object Cache on WordPress page on hPanel\" class=\"wp-image-4602\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/enabling-litespeed-object-cache-on-hpanel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/enabling-litespeed-object-cache-on-hpanel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/4\/2023\/03\/enabling-litespeed-object-cache-on-hpanel.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div><p>Take your website to the next level and maximize its potential with LiteSpeed Object Cache.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know that your website\u2019s database can affect its performance? Too much data and too many files can put an extra load on the server when displaying your site to visitors.&#038;n\u2026<\/p>\n","protected":false},"author":362,"featured_media":4599,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2391],"tags":[],"hashtags":[],"class_list":["post-4598","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-product-updates"],"hreflangs":[],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/posts\/4598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/comments?post=4598"}],"version-history":[{"count":3,"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/posts\/4598\/revisions"}],"predecessor-version":[{"id":6122,"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/posts\/4598\/revisions\/6122"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/media\/4599"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/media?parent=4598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/categories?post=4598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/tags?post=4598"},{"taxonomy":"hashtags","embeddable":true,"href":"https:\/\/www.hostinger.com\/blog\/wp-json\/wp\/v2\/hashtags?post=4598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}