{"id":33560,"date":"2019-02-04T18:09:30","date_gmt":"2019-02-04T16:09:30","guid":{"rendered":"https:\/\/tuthost.ua\/faq\/how-to-set-up-memcached-caching-for-wordpress\/"},"modified":"2024-07-19T22:56:20","modified_gmt":"2024-07-19T19:56:20","slug":"kak-nastroit-keshirovanie-memcached-dlya-wordpress","status":"publish","type":"ht_kb","link":"https:\/\/tuthost.ua\/en\/faq\/kak-nastroit-keshirovanie-memcached-dlya-wordpress\/","title":{"rendered":"How to Set Up Memcached Caching for Wordpress"},"content":{"rendered":"<p>Memcached is installed <a href=\"https:\/\/tuthost.ua\/en\/hosting\/wordpress\/\">on Wordpress hosting<\/a> rates, a service that serves to cache data and, accordingly, speed up Wordpress loading. There are many WordPress plugins that support this caching option, but we have selected the best 2 for you from our point of view.<\/p>\n<p><strong>W3 Total Cache is a free plugin.<\/strong><br \/>\nIt can be installed directly via Wordpress or via the <a rel=\"noopener nofollow\" href=\"https:\/\/ru.wordpress.org\/plugins\/w3-total-cache\/\" target=\"_blank\">link<\/a> . After installation, you need to enable several options in it so that it uses Memcached for caching.<\/p>\n<ol>\n<li>Go to plugin settings (Performance &#8211; General Settings)<\/li>\n<li>Enable caching in sections <span>Page Cache. Check the box next to Page Cache &#8211; Enable, and in the drop-down list Page cache method &#8211; select Memcached<\/span><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-22277 size-full alignnone\" src=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/02\/page_cache.png\" alt=\"\" width=\"804\" height=\"291\" title=\"\" srcset=\"https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/02\/page_cache.png 804w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/02\/page_cache-150x54.png 150w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/02\/page_cache-300x109.png 300w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/02\/page_cache-768x278.png 768w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/02\/page_cache-125x45.png 125w, https:\/\/tuthost.ua\/wp-content\/uploads\/2019\/02\/page_cache-75x27.png 75w\" sizes=\"auto, (max-width: 804px) 100vw, 804px\" \/><\/li>\n<li>By the same principle, we can enable <span>Memcached caching in the Database Cache and Object Cache section<\/span><\/li>\n<li>To reduce the size of pages &#8211; we recommend enabling compressed in the <span>Minify section &#8211; check the Enable option, Minify mode &#8211; set Auto, and in the Minify Cache Method section select Memcached, leave the rest of the settings as default<\/span><\/li>\n<li><span>And now we check whether everything works correctly and whether your pages are cached. In the W3 Total Cache settings in the Debug section &#8211; check the box next to Page Cache. After that, we go to the site as a guest or in anonymous mode, refresh the page once (so that it is cached) and look at the source code of the page (in most browsers, the Ctrl + U combination works).<br \/>\nAt the very bottom of the source code of the page you will see the section &#8220;Performance optimized by W3 Total Cache&#8221;. It is important that there is a Page Caching using memcached line, and memcached is indicated opposite the Engine line, this tells us that caching is working and configured correctly.<\/span><\/li>\n<\/ol>\n<p><strong>WP Rocket &#8211; Paid<\/strong><\/p>\n<p>WP Rocket is one of the best paid caching plugins and we use it extensively in our projects. It costs from $49 and you can buy it at the <a rel=\"noopener nofollow\" href=\"https:\/\/wp-rocket.me\" target=\"_blank\">link<\/a> . By default, it does not support <span>memcached, so you will need to install an additional plugin: <a rel=\"noopener nofollow\" href=\"https:\/\/wordpress.org\/plugins\/memcached-redux\/\" target=\"_blank\">Memcached Redux<\/a> .<\/span><\/p>\n<ol>\n<li><span>Install the WP Rocket and Memcached Redux plugins, but don&#8217;t activate the Memcached Redux plugin.<\/span><\/li>\n<li>Copy the file <em>object-cache.php<\/em><span> <\/span>from a folder<span> <\/span><em>\/wp-content\/plugins\/memcached-redux\/<\/em><span> <\/span>to the <em>wp-content<\/em> folder.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Memcached is installed on Wordpress hosting rates, a service that serves to cache data and, accordingly, speed up Wordpress loading. There are many WordPress plugins that support this caching option, but we have selected the best 2 for you from our point of view. W3 Total Cache is a free plugin. It can be installed&#8230;<\/p>\n","protected":false},"author":1,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","ghostkit_customizer_options":"","ghostkit_custom_css":"","ghostkit_custom_js_head":"","ghostkit_custom_js_foot":"","ghostkit_typography":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"ht-kb-category":[10669],"ht-kb-tag":[],"class_list":["post-33560","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hosting-en"],"taxonomy_info":{"ht_kb_category":[{"value":10669,"label":"Hosting"}]},"featured_image_src_large":[],"author_info":{"display_name":"Denys Semeniuk","author_link":"https:\/\/tuthost.ua\/en\/author\/semden\/"},"comment_info":0,"_links":{"self":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/33560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/comments?post=33560"}],"version-history":[{"count":2,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/33560\/revisions"}],"predecessor-version":[{"id":42711,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb\/33560\/revisions\/42711"}],"wp:attachment":[{"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/media?parent=33560"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-category?post=33560"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/tuthost.ua\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=33560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}