{"id":18,"date":"2017-11-08T09:52:59","date_gmt":"2017-11-08T15:52:59","guid":{"rendered":"https:\/\/help.marketingservices.dev\/?p=18"},"modified":"2017-12-12T09:55:04","modified_gmt":"2017-12-12T15:55:04","slug":"site-file-caching","status":"publish","type":"post","link":"https:\/\/help.marketingservices.dev\/?p=18","title":{"rendered":"How does caching work in Website Pro?"},"content":{"rendered":"<h2>What is caching?<\/h2>\n<p><span style=\"font-weight: 400;\">A web cache (or HTTP cache) is the temporary storage (caching) of web documents, such as HTML pages and images, to reduce server lag. For example, when you return to a page you&#8217;ve recently looked at, the browser can get those files from the cache rather than the original server, saving you time and saving the network the burden of additional traffic.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Caching static files reduces several systems between an end user requesting your website and the delivery of the WordPress PHP files and thus, speeds up your WordPress site load time.\u00a0<\/span><span style=\"font-weight: 400;\">Caching can be implemented on several levels and Website Pro has one level of caching implemented for you.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Website Pro built-in caching<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Website Pro has a reverse proxy layer implemented with Nginx. Nginx is very fast and has an efficient caching mechanism. This can make viewing your changes awkward, but <\/span><b><i>you can skip the cache by adding any URL parameters to the address: <\/i><\/b><a href=\"http:\/\/www.example.com\/path\/you\/are\/checking\/?skip-cache\"><b><i>www.example.com\/path\/you\/are\/checking\/?skip-cache<\/i><\/b><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Currently Website Pro caches all content that matches the following criteria for 1 hour:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Response was ok (200 status code)<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">GET or HEAD requests (so not posting content)<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">No URL parameters:<\/span>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">So <\/span><a href=\"http:\/\/www.example.com\/foo\/bar\"><span style=\"font-weight: 400;\">www.example.com\/foo\/bar<\/span><\/a><span style=\"font-weight: 400;\"> matches<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">But <\/span><a href=\"http:\/\/www.example.com\/foo\/bar?anything\"><span style=\"font-weight: 400;\">www.example.com\/foo\/bar?anything<\/span><\/a><span style=\"font-weight: 400;\"> does not<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Request is not to the admin panel <\/span><a href=\"http:\/\/www.example.com\/wp-admin\/anything\"><span style=\"font-weight: 400;\">www.example.com\/wp-admin\/anything<\/span><\/a><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Request does not have a cookie that shows they<\/span>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">Just posted the comment they&#8217;re looking at<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">They are logged in<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">They have <\/span><i><span style=\"font-weight: 400;\">wordpress_no_cache<\/span><\/i><span style=\"font-weight: 400;\"> set<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">They have <\/span><i><span style=\"font-weight: 400;\">wp-postpass<\/span><\/i><span style=\"font-weight: 400;\"> set<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">WordPress Plugins can also implement some level of caching. This can cause some problems (see Divi File Caching for one example). CDN level caching is not natively supported in Website Pro at this time but it is in the long-range plan and Cloudflare can serve that purpose for now.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is caching? A web cache (or HTTP cache) is the temporary storage (caching) of web documents, such as HTML pages and images, to reduce server lag. For example, when you return to a page you&#8217;ve recently looked at, the browser can get those files from the cache rather than the original server, saving you [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":5,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions\/222"}],"wp:attachment":[{"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/help.marketingservices.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}