{"id":8499,"date":"2022-09-02T11:48:13","date_gmt":"2022-09-02T11:48:13","guid":{"rendered":"https:\/\/clustercs.com\/kb\/?docs=docly-documentation\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx"},"modified":"2022-09-19T13:10:20","modified_gmt":"2022-09-19T13:10:20","slug":"caching-on-wordpress-using-nginx","status":"publish","type":"docs","link":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/","title":{"rendered":"Caching on WordPress using nginx"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><strong>Caching your WordPress using ClusterCS<\/strong><br>Whether you want more speed, a better experience for your visitors, for SEO, or any personal reason, chances are you want a caching layer on your website.<br>Caching in ClusterCS is achieved by spending only a few minutes in the Control Panel.<br>Start by going in the Speed tab of your domain.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png\"><img decoding=\"async\" src=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>Now you should scroll down to&nbsp;<strong>ADD NEW RULE<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/download-1-1024x500.png\"><img decoding=\"async\" src=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/download-1-1024x500.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p>and set the following conditions, which I will explain lower:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_nginx_cacacher.png\"><img decoding=\"async\" src=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_nginx_cacacher.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_nginx_cache_on_wordpress_speed_rule_2.png\"><img decoding=\"async\" src=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_nginx_cache_on_wordpress_speed_rule_2.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_nginx_cache_on_wordpress_speed_rule_3.png\"><img decoding=\"async\" src=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/clustercs_nginx_cache_on_wordpress_speed_rule_3.png\" alt=\"\"\/><\/a><\/figure>\n\n\n\n<p><strong>path begins_with \/<\/strong>&nbsp;\u2013 this is the base path on which the cache layer should be applied. if your WordPress installation is located in a subfolder please adjust accordingly, ex: \u201cpath begins_with \/blog\u201d<\/p>\n\n\n\n<p><strong>path not_ends_with .php<\/strong>&nbsp;\u2013 calls to php files are most likely custom data that should not be cached<\/p>\n\n\n\n<p><strong>cookie \u2013 not_contains \u2013 wordpress_logged_in<\/strong>&nbsp;\u2013 WordPress maintains a cookie which is an indicator of this state \u2013 wordpress_logged_in \u2013 if it caches it, then some private user data may be shown publicly<\/p>\n\n\n\n<p><strong>method \u2013 get&nbsp;<\/strong>\u2013&nbsp;other types usually have important actions being carried and shouldn\u2019t be lost<\/p>\n\n\n\n<p>Don\u2019t forget to set the last option with \u201ccache_with Webserver\/nginx\u201d<\/p>\n\n\n\n<p>Once everything is set up, you need to give your domain some time (About 30 minutes) to populate the cache. During that time, you may experience some higher resource load, which is totally normal.<\/p>\n\n\n\n<p>For more in-depth details about the Speed Engine, please visit our\u00a0<strong><a href=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/\" title=\"\">KB Article<\/a><\/strong><\/p>\n\n\n\n<p>Now you can take full advantage of your cache and serve more users, faster!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Caching your WordPress using ClusterCSWhether you want more speed, a better experience for your visitors, for SEO, or any personal reason, chances are you want a caching layer on your website.Caching in ClusterCS is achieved by spending only a few minutes in the Control Panel.Start by going in the Speed tab of your domain. Now [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":8489,"menu_order":10,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-8499","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Caching on Wordpress using nginx - ClusterCS Knowledge Base<\/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:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Caching on Wordpress using nginx - ClusterCS Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Caching your WordPress using ClusterCSWhether you want more speed, a better experience for your visitors, for SEO, or any personal reason, chances are you want a caching layer on your website.Caching in ClusterCS is achieved by spending only a few minutes in the Control Panel.Start by going in the Speed tab of your domain. Now [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/\" \/>\n<meta property=\"og:site_name\" content=\"ClusterCS Knowledge Base\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-19T13:10:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/\",\"url\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/\",\"name\":\"Caching on Wordpress using nginx - ClusterCS Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\/\/clustercs.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png\",\"datePublished\":\"2022-09-02T11:48:13+00:00\",\"dateModified\":\"2022-09-19T13:10:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#primaryimage\",\"url\":\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png\",\"contentUrl\":\"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/clustercs.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ClusterCS Documentation\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Speed Optimizations\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Actions\",\"item\":\"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Caching on WordPress using nginx\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/clustercs.com\/kb\/#website\",\"url\":\"https:\/\/clustercs.com\/kb\/\",\"name\":\"ClusterCS Knowledge Base\",\"description\":\"Welcome to ClusterCS Documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/clustercs.com\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Caching on Wordpress using nginx - ClusterCS Knowledge Base","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:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/","og_locale":"en_US","og_type":"article","og_title":"Caching on Wordpress using nginx - ClusterCS Knowledge Base","og_description":"Caching your WordPress using ClusterCSWhether you want more speed, a better experience for your visitors, for SEO, or any personal reason, chances are you want a caching layer on your website.Caching in ClusterCS is achieved by spending only a few minutes in the Control Panel.Start by going in the Speed tab of your domain. Now [&hellip;]","og_url":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/","og_site_name":"ClusterCS Knowledge Base","article_modified_time":"2022-09-19T13:10:20+00:00","og_image":[{"url":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/","url":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/","name":"Caching on Wordpress using nginx - ClusterCS Knowledge Base","isPartOf":{"@id":"https:\/\/clustercs.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#primaryimage"},"image":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#primaryimage"},"thumbnailUrl":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png","datePublished":"2022-09-02T11:48:13+00:00","dateModified":"2022-09-19T13:10:20+00:00","breadcrumb":{"@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#primaryimage","url":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png","contentUrl":"https:\/\/clustercs.com\/oldkb\/wp-content\/uploads\/2018\/11\/chrome_0PxSlASFWF-1024x143.png"},{"@type":"BreadcrumbList","@id":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/caching-on-wordpress-using-nginx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/clustercs.com\/kb\/"},{"@type":"ListItem","position":2,"name":"ClusterCS Documentation","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/"},{"@type":"ListItem","position":3,"name":"Speed Optimizations","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/"},{"@type":"ListItem","position":4,"name":"Actions","item":"https:\/\/clustercs.com\/kb\/docs\/clustercs\/speed-optimizations\/actions\/"},{"@type":"ListItem","position":5,"name":"Caching on WordPress using nginx"}]},{"@type":"WebSite","@id":"https:\/\/clustercs.com\/kb\/#website","url":"https:\/\/clustercs.com\/kb\/","name":"ClusterCS Knowledge Base","description":"Welcome to ClusterCS Documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/clustercs.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/comments?post=8499"}],"version-history":[{"count":3,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8499\/revisions"}],"predecessor-version":[{"id":8993,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8499\/revisions\/8993"}],"up":[{"embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/docs\/8489"}],"wp:attachment":[{"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/media?parent=8499"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/clustercs.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=8499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}