{"id":5007,"date":"2021-05-30T22:16:23","date_gmt":"2021-05-30T22:16:23","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=5007"},"modified":"2024-01-22T21:59:14","modified_gmt":"2024-01-22T21:59:14","slug":"settings-cache-accel","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/docs\/wordpress\/accelerator\/settings-accel\/settings-cache-accel","title":{"rendered":"Cache settings Accelerator for WordPress"},"content":{"rendered":"<p style=\"text-align:justify\">\n  One of the most important settings<span style=\"font-size:12pt\"> <\/span>blocks <span style=\"font-size:12pt\">for <\/span>the WordPress cache system.\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/accelerator\/settings-cache-accel\/settings-cache-en.png\" alt=\"settings-Cache\" title=\"settings-Cache - Cache settings\" \/>\n<\/p>\n<h2><a id=\"general\"><\/a>General<br \/>\n<\/h2>\n<ul>\n<li>\n<div style=\"text-align:justify\"><a id=\"enable\"><\/a><strong>Enable<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      Enables or disables the whole WordPress cache system. Note that WordPress content optimization is controlled by the \u2018<a href=\".\/settings-advanced-accel#enable_cont_proc\">Enable content processing<\/a>\u2019 option independently.\n    <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Early pages processing (warming up)<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      When <a href=\".\/status-and-operations-accel#operate\">pages are revalidated or deleted<\/a>, they will be re-optimized immediately, not just the first time they are accessed.\n    <\/p>\n<\/li>\n<\/ul>\n<h2><a id=\"encodings\"><\/a>Accepted encodings<br \/>\n<\/h2>\n<p style=\"text-align:justify\">\n  Here can be specified the encodings in which the server will serve the content. &#8216;Uncompressed&#8217; is always on because this is required by the data transfer standard.\n<\/p>\n<ul start=\"3\">\n<li style=\"text-align:justify\"><strong>Brotli<\/strong>\n  <\/li>\n<li style=\"text-align:justify\"><strong>GZip<\/strong>\n  <\/li>\n<li style=\"text-align:justify\"><strong>Deflate<\/strong>\n  <\/li>\n<li style=\"text-align:justify\"><strong>Compress<\/strong>\n  <\/li>\n<li style=\"text-align:justify\"><strong>Uncompressed<\/strong>\n  <\/li>\n<\/ul>\n<h2><a id=\"compression\"><\/a>Data storing<br \/>\n<\/h2>\n<h3>\n  Compression<br \/>\n<\/h3>\n<ul>\n<li>\n<div style=\"text-align:justify\"><strong>Brotli<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      If there is enough hosting space, then the data can be stored in this compressed form, which will slightly speed up the delivery of content if the request came with the same compression.\n    <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Zip<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      If the request came with GZip, Deflate or Compress encoding, then the content will be served without re-encoding as quickly as possible. Also, compression saves space for cached data.\n    <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Uncompressed<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      If there is enough hosting space, then the data can be stored in uncompressed form, which will slightly speed up the delivery of content if the request also came without compression.\n    <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Use compression for assets<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      Storing assets in compressed state to provide faster server response. Can be turned off if there is some conflict between server compression.\n    <\/p>\n<\/li>\n<\/ul>\n<h3><a id=\"separation\"><\/a>Directory levels<br \/>\n<\/h3>\n<p style=\"text-align:justify\">\n  By default, all hashed items like \u201800112233445566778899aabbccddeeff\u2019 are stored under root directory. This option allows to store items in subdirectories to minimize files count in one directory. So, entering <code>1:2<\/code> parameter will convert \u201800112233445566778899aabbccddeeff\u2019 to \u20180\/01\/12233445566778899aabbccddeeff\u2019.\n<\/p>\n<h2>\n  Same parts separation<br \/>\n<\/h2>\n<p style=\"text-align:justify\">\n  It\u2019s the settings for <a href=\".\/fragmented-cache-accel\">fragmentation technology<\/a>. The content is divided into parts, which are stored independently and allows to select the parts that are identical in content. This contributes to significant savings in cache storage space on the hosting, since many pages have the same parts, such as header, footer, comment block, etc.\n<\/p>\n<ul>\n<li>\n<div style=\"text-align:justify\"><strong>Optimize storaging<\/strong>\n    <\/div>\n<p style=\"text-align:justify\">\n      Enables this mode.\n    <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Separators<\/strong>\n    <\/div>\n<ul>\n<li>\n<div style=\"text-align:justify\"><strong>Enable<\/strong>\n        <\/div>\n<p style=\"text-align:justify\">\n          Enables\/disables a specific separator for easy customization, so as not to delete an element.\n        <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Element(s) XPath selector<\/strong>\n        <\/div>\n<p style=\"text-align:justify\">\n          One or more elements can be specified through an <a href=\".\/xpath-elements-selector-accel\">XPath selector<\/a>.\n        <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Before<\/strong>\n        <\/div>\n<p style=\"text-align:justify\">\n          Split content\u00a0before the\u00a0element.\n        <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>After<\/strong>\n        <\/div>\n<p style=\"text-align:justify\">\n          Split content after the element.\n        <\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align:justify\">\n  The division into parts can be checked with the \u2018<a href=\".\/settings-advanced-accel#debug_enable\">Enable<\/a>\u2019 debugging option enabled and loading the checked page with the <code>?seraph_accel_proc=1<\/code> parameter. In<span style=\"font-size:12pt\"> <\/span>the page HTML code, we need to search for special separating elements <code>&lt;!-- seraph-accel-cont-sep --&gt;<\/code> and check their location in accordance with the specified settings.\n<\/p>\n<h2><a id=\"headers\"><\/a>Headers<br \/>\n<\/h2>\n<p style=\"text-align:justify\">\n  These settings allow to cache particular headers, e.g. cookies, by adding them as a <a href=\".\/regexp-accel\">regular expressions<\/a> patterns. If the pattern matches the header will be added to the page\u2019s cache. It can be added multiple patterns at once by placing each on new line.\n<\/p>\n<p style=\"text-align:justify\">\n  Here is the pattern example for a<span style=\"font-size:12pt\"> <\/span>header with cookie <code>wordpress_test_cookie<\/code><span style=\"font-size:12pt\"> <\/span>which is already added by default:\n<\/p>\n<p style=\"text-align:justify\"><code class=\"p\">@^set-cookie\\s*:\\s*wordpress_test_cookie\\s*=@i<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the most important settings blocks for the WordPress cache system. General Enable Enables or disables the whole WordPress cache system. Note that WordPress content optimization is controlled by the \u2018Enable content processing\u2019 option independently. Early pages processing (warming up) When pages are revalidated or deleted, they will be re-optimized immediately, not just the&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":4812,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[816],"tags":[],"class_list":["post-5007","doc","type-doc","status-publish","hentry","category-accelerator"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/5007","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/comments?post=5007"}],"up":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/4812"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/media?parent=5007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/categories?post=5007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/tags?post=5007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}