{"id":8792,"date":"2015-01-26T20:50:22","date_gmt":"2015-01-26T20:50:22","guid":{"rendered":"https:\/\/wp.okra.host\/article\/optimal-w3-total-cache-settings\/"},"modified":"2021-03-07T14:51:57","modified_gmt":"2021-03-07T13:51:57","slug":"optimal-w3-total-cache-settings","status":"publish","type":"ht_kb","link":"https:\/\/kb.okra.host\/de\/article\/optimal-w3-total-cache-settings\/","title":{"rendered":"Optimal W3 Total Cache settings"},"content":{"rendered":"<h2 id=\"overview\" >\u00dcbersicht<\/h2>\n<p><a href=\"https:\/\/wordpress.org\/plugins\/w3-total-cache\/\">W3 Total Cache<\/a> is a comprehensive caching plugin for WordPress that will dramatically speed up pageviews and consolidate page requests. WordPress works faster, and people who visit your page can do more in less time, with no downsides. It works so well, it is even used on this knowledgebase, kb.okra.host.<\/p>\n<h2 id=\"installing\" >Installing<\/h2>\n<ol>\n<li>Login to your WordPress admin portal, typically domain + <code>\/wp-admin<\/code>\n<ul>\n<li>e.g. <code>http:\/\/example.com\/wp-admin<\/code> if the domain is <code>Beispiel.com<\/code><\/li>\n<\/ul>\n<\/li>\n<li>Navigate to\u00a0<strong>Plugins<\/strong> &gt;\u00a0<strong>Add New<\/strong>\n<\/p>\n<div id=\"attachment_567\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/wordpress-plugin-location.png\" rel=\"lightbox-0\" data-lbwps-width=\"351\" data-lbwps-height=\"167\" data-lbwps-srcsmall=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/wordpress-plugin-location.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-567\" loading=\"lazy\" class=\"size-medium wp-image-567\" src=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/wordpress-plugin-location-300x143.png\" alt=\"&quot;Add New&quot; location underneath Plugins\" width=\"300\" height=\"143\" \/><\/a><\/p>\n<p id=\"caption-attachment-567\" class=\"wp-caption-text\">&#8220;Add New&#8221; location underneath Plugins<\/p>\n<\/div>\n<\/li>\n<li>Within the Search bar, enter <em>W3 Total Cache<\/em><\/li>\n<li>Click\u00a0<strong>Install Now<\/strong><\/li>\n<li>Enter your FTP password or <a title=\"Accessing FTP server\" href=\"https:\/\/kb.okra.host\/de\/ftp\/accessing-ftp-server\/\">login information<\/a> to install the plugin securely through FTP\n<ul>\n<li>Specify\u00a0<code>localhost<\/code> f\u00fcr\u00a0<strong>Hostname<\/strong>\n<ul>\n<li>Traffic will stay local on the server adding an extra layer of privacy<\/li>\n<\/ul>\n<\/li>\n<li>Need to <a title=\"Resetting your password\" href=\"https:\/\/kb.okra.host\/de\/control-panel\/resetting-your-password\/\">reset your password?<\/a><\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Activate <\/strong>once installed to activate this plugin<\/li>\n<\/ol>\n<h2 id=\"configuring\" >Configuring<\/h2>\n<h3 id=\"automatic\" >Automatic<\/h3>\n<ol>\n<li>Under\u00a0<strong>Performance<\/strong> &gt;\u00a0<strong>General Settings<\/strong>\u00a0&gt; <strong>Import\/Export<\/strong>, select\u00a0<strong>Import configuration<\/strong>.<\/li>\n<li>Extract\u00a0<code>w3-settings.php<\/code> from the attached zip file, select this file.\n<ul>\n<li><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/w3-settings.zip\">Download w3-settings.zip<\/a>\u00a0(sha256:\u00a0<code>cce8cbc6a210a8cbde05b86d3b252a930f0396877eb4b6727ec1939fe5d202f0<\/code>)<\/li>\n<li>Note: minification is enabled for logged-in users. If making changes to your\u00a0theme, disable this feature via\u00a0<strong>General Settings<\/strong> &gt;\u00a0<strong>Minify<\/strong> &gt; Disable for logged in users\u00a0<strong>enable<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li>Click\u00a0<strong>Upload<\/strong><\/li>\n<li>Upon success, &#8220;<em>Settings successfully uploaded<\/em>&#8221; will appear up top confirming install success.\n<\/p>\n<div id=\"attachment_569\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/w3-import-success.png\" rel=\"lightbox-1\" data-lbwps-width=\"645\" data-lbwps-height=\"119\" data-lbwps-srcsmall=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/w3-import-success.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-569\" loading=\"lazy\" class=\"size-medium wp-image-569\" src=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/w3-import-success-300x55.png\" alt=\"W3 Total Cache import success confirmation dialog.\" width=\"300\" height=\"55\" \/><\/a><\/p>\n<p id=\"caption-attachment-569\" class=\"wp-caption-text\">W3 Total Cache import success confirmation dialog.<\/p>\n<\/div>\n<\/li>\n<\/ol>\n<h3 id=\"manual\" >Manual<\/h3>\n<p>Unless explicitly stated, all other values should remain unchecked or default setting.<\/p>\n<ul>\n<li>Under <span style=\"text-decoration: underline\">General Settings<\/span>:\n<ul>\n<li>Page cache\u00a0<strong>enable<\/strong><\/li>\n<li>Page cache method\u00a0<strong>Disk: Enhanced<\/strong><\/li>\n<li>Minify <strong>enable<\/strong><\/li>\n<li>Minify cache method\u00a0<strong>disk<\/strong><\/li>\n<li>Database cache\u00a0<strong>enable<\/strong><\/li>\n<li>Database cache method\u00a0<strong>disk<\/strong><\/li>\n<li>Object cache\u00a0<strong>enable<\/strong><\/li>\n<li>Object cache method\u00a0<strong>disk<\/strong><\/li>\n<li>Browser cache\u00a0<strong>enable<\/strong><\/li>\n<li>Verify rewrite rules <strong>enable<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Under\u00a0<span style=\"text-decoration: underline\">Minify<\/span>:\n<ul>\n<li>Rewrite URL structure <strong>enable<\/strong><\/li>\n<li>Disable minify for logged in users\u00a0<strong>enable<\/strong><\/li>\n<li>HTML minify setting\u00a0<strong>disable<\/strong><\/li>\n<li>JS minify\u00a0<strong>enable<\/strong><\/li>\n<li>JS minify\u00a0operation\u00a0<strong>combine only<\/strong> +<b>\u00a0<\/b><strong>non-blocking using &#8220;async&#8221;<\/strong><\/li>\n<li>CSS minify setting\u00a0<strong>enable<\/strong><\/li>\n<li>CSS minify\u00a0<strong>combine only<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><span style=\"color: #0000ff\">Discussion: <\/span><span style=\"color: #000000\">of particular interest is combining JavaScript and CSS files\u00a0that ship with plugins to reduce the\u00a0total number of HTTP requests in turn decreasing page load time. Minification of JavaScript and CSS is typically done by the vendor. Although it\u00a0can be\u00a0enabled, on low traffic sites the overhead incurred on the first-run, which\u00a0compresses JavaScript\/CSS,\u00a0would be too significant: once a cache expires, it would recompile. If a user views a site every hour, a user has roughly a 50\/50 chance of increased page load times while the scripts are recompressed.\u00a0<\/span><\/p>\n<p>Disk cache is preferred over APC\/OPCache, because whenever the HTTP server is restarted to load new addon domain\u00a0changes, the APC\/OPCache is purged. Any cached files then would be lost. <em>On high traffic sites<\/em>, APC\/OPCache would yield better performance by bypassing a file stat() and instead pulling from the cache from memory.<\/p>\n<p>An analysis from <a href=\"http:\/\/webpagetest.org\">webpagetest.org<\/a>\u00a0illustrates the performance gains before and after using W3 Total Cache. First byte time is reduced (processing the request) + number of requests has been reduced as well. A post processes 36% faster, and the page loads external assets (CSS\/JS) 3.7% faster. With more plugins, the\u00a0performance gains\u00a0become greater when W3 Total Cache is activated.<\/p>\n<div id=\"attachment_570\" style=\"width: 650px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/caching-before-and-after.png\" rel=\"lightbox-2\" data-lbwps-width=\"1944\" data-lbwps-height=\"1026\" data-lbwps-srcsmall=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/caching-before-and-after.png\"><img decoding=\"async\" aria-describedby=\"caption-attachment-570\" loading=\"lazy\" class=\"wp-image-570 size-large\" src=\"https:\/\/kb.okra.host\/wp-content\/uploads\/2015\/01\/caching-before-and-after-1024x540-1.png\" alt=\"Page loads before and after caching on kb.okra.host.\" width=\"640\" height=\"338\" \/><\/a><\/p>\n<p id=\"caption-attachment-570\" class=\"wp-caption-text\">Page loads before and after caching on kb.okra.host.<\/p>\n<\/div>\n<h2 id=\"see-also\" >Siehe auch<\/h2>\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/w3-total-cache\/faq\/\">W3 Total Cache FAQ<\/a><\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Overview W3 Total Cache is a comprehensive caching plugin for WordPress that will dramatically speed up pageviews and consolidate page requests. WordPress works faster, and people who visit your page can do more in less time, with no downsides. It works so well, it is even used on this knowledgebase,&#8230;<\/p>","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[69],"ht-kb-tag":[],"class_list":["post-8792","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-wordpress"],"_links":{"self":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8792","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/comments?post=8792"}],"version-history":[{"count":2,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8792\/revisions"}],"predecessor-version":[{"id":8797,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb\/8792\/revisions\/8797"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media\/8794"}],"wp:attachment":[{"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/media?parent=8792"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-category?post=8792"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.okra.host\/de\/wp-json\/wp\/v2\/ht-kb-tag?post=8792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}