One of the most important settings blocks for the WordPress cache system.
Enables or disables the whole WordPress cache system. Note that WordPress content optimization is controlled by the ‘Enable content processing’ option independently.
- Early pages processing (warming up)
When pages are revalidated or deleted, they will be re-optimized immediately, not just the first time they are accessed.
Here can be specified the encodings in which the server will serve the content. ‘Uncompressed’ is always on because this is required by the data transfer standard.
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.
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.
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.
- Use for assets
Storing assets in compressed state to provide faster server response. Can be turned off if there is some conflict between server compression.
Same parts separation#
It’s the settings for fragmentation technology. 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.
- Optimize storaging
Enables this mode.
Enables/disables a specific separator for easy customization, so as not to delete an element.
- Element(s) XPath selector
One or more elements can be specified through an XPath selector.
Split content before the element.
Split content after the element.
The division into parts can be checked with the ‘Enable’ debugging option enabled and loading the checked page with the
?seraph_accel_proc=1 parameter. In the page HTML code, we need to search for special separating elements
<!-- seraph-accel-cont-sep --> and check their location in accordance with the specified settings.
These settings allow to cache particular headers, e.g. cookies, by adding them as a regular expressions patterns. If the pattern matches the header will be added to the page’s cache. It can be added multiple patterns at once by placing each on new line.
Here is the pattern example for a header with cookie
wordpress_test_cookie which is already added by default: