{"id":4836,"date":"2021-05-28T18:36:46","date_gmt":"2021-05-28T18:36:46","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=4836"},"modified":"2025-05-14T16:05:58","modified_gmt":"2025-05-14T16:05:58","slug":"settings-users-accel","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/docs\/wordpress\/accelerator\/settings-accel\/settings-users-accel","title":{"rendered":"Users settings Accelerator for WordPress"},"content":{"rendered":"<p>\n  It\u2019s the most complex settings in the product.<a id=\"_Hlk73114738\"><\/a>\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/accelerator\/settings-users-accel\/settings-users-en.png\" alt=\"settings-Users\" title=\"settings-Users - Users settings\" \/>\n<\/p>\n<h2><a id=\"cache\"><\/a>Cache<br \/>\n<\/h2>\n<ul>\n<li><strong>Enable<\/strong>\n<p style=\"text-align:left\">\n      Enables users caching. Due to users caching is a very complex thing we always ready to <a href=\"\/en\/support\">assist<\/a> you in its setup.<a id=\"_Hlk73114777\"><\/a> Also, in this mode additional cookie <code>__Secure-wp_seraph_accel_sess_*<\/code> is set when caching session is active.\n    <\/p>\n<\/li>\n<li><strong>Only for fresh parts<\/strong>\n<p style=\"text-align:left\">\n      If enabled then checking user session is happening only for fresh parts. It gives ability to have all common content cached except defined <a href=\".\/settings-html-accel#fresh\">fresh parts<\/a>.\n    <\/p>\n<\/li>\n<li><strong>Separate sessions<\/strong>\n<p style=\"text-align:left\">\n      In some rare cases, sessions can be combined into one.<a id=\"_Hlk73114803\"><\/a>\n    <\/p>\n<\/li>\n<li><a id=\"revalidation\"><\/a><strong>Enable content optimization<\/strong>\n<p style=\"text-align:left\">\n      Enables optimization for users. It can be useful to turn it off to save server CPU and reduce caching time.\n    <\/p>\n<\/li>\n<\/ul>\n<h2>\n  Cache revalidation<br \/>\n<\/h2>\n<ul>\n<li><strong>Allow from browser<\/strong>\n<p style=\"text-align:left\">\n      Allows a user to revalidate the current page by force refreshing in the browser (e.g. pressing Ctrl+F5 in Chrome).<a id=\"_Hlk73114836\"><\/a>\n    <\/p>\n<\/li>\n<li>\n<div style=\"text-align:justify\"><strong>Lazy revalidation<\/strong>\n    <\/div>\n<p style=\"text-align:left\">\n      Allows updating the content in the background. Disabled by default to ensure that the user&#8217;s cache is always up to date when it is updated.\n    <\/p>\n<\/li>\n<\/ul>\n<ul start=\"2\">\n<li><strong>Time to live for cleanup<\/strong>\n<p style=\"text-align:left\">\n      Not earlier than the expiration of this time after the last change of content, it will be removed only from users&#8217; cache by using the \u2018<a href=\".\/status-and-operations-accel#operate_cleanup\">Cleanup<\/a>\u2019 function to decrease cache storage space. If there is no need, it can be simply turned off by setting everywhere 0.<a id=\"_Hlk73114894\"><\/a>\n    <\/p>\n<\/li>\n<\/ul>\n<h2><a id=\"dep_grp\"><\/a>Data dependencies groups<br \/>\n<\/h2>\n<p>\n  It is a list of groups that each consists of a set of cookies, arguments, and database table dependencies.<a id=\"_Hlk73114949\"><\/a>\n<\/p>\n<p>\n  Settings for each group:<a id=\"_Hlk73114963\"><\/a>\n<\/p>\n<ul>\n<li><a id=\"dep_grp_enable\"><\/a><strong>Enable<\/strong>\n<p style=\"text-align:left\">\n      Enables\/disables a specific group for easy customization, so as not to delete an element.\n    <\/p>\n<\/li>\n<li><a id=\"dep_grp_name\"><\/a><strong>Group name<\/strong>\n<p style=\"text-align:left\">\n      Optional name to identify.\n    <\/p>\n<\/li>\n<li><a id=\"dep_grp_cookies\"><\/a><strong>Cookies<\/strong>\n<p style=\"text-align:left\">\n      Pages\u2019 requests having cookie names that begin with any of the specified strings will be treated as user-dependent and will be managed by the cache engine separately. If name begins with one of <code>\/~@;%`#<\/code> it is interpreted as regular expression. Also, cookie\u2019s value can be compared by appending name with <code>=<\/code> or <code>!=<\/code> and exact value. E.g. <code>@^wcml_client_currency$@ != EUR<\/code>. It can be added multiple items at once by placing each on new line.\n    <\/p>\n<\/li>\n<li><a id=\"dep_grp_args\"><\/a><strong>URI arguments<\/strong>\n<p style=\"text-align:left\">\n      Pages\u2019 URLs having arguments that begin with any of the specified strings will be excluded from caching. It can be added multiple strings at once via separating by commas.\n    <\/p>\n<\/li>\n<li><a id=\"dep_grp_tbl\"><\/a><strong>Tables<\/strong>\n<p style=\"text-align:left\">\n      List of user data-dependent tables that are used when user caching is active. When caching engine detects that user data has been changed according to specified tables, then it revalidates user session cached data to provide fresh content to the user. See the <a href=\"#dep_grp_tbl_example\">example<\/a> below.\n    <\/p>\n<p style=\"text-align:left\">\n      Settings for each item:\n    <\/p>\n<ul>\n<li><a id=\"dep_grp_tbl_name\"><\/a><strong>Table name<\/strong>\n<p style=\"text-align:left\">\n          Database name of the table. Template <code>%PREFIX%<\/code> can be used that will be replaced by WordPress common database table name prefix.\n        <\/p>\n<\/li>\n<li><a id=\"dep_grp_tbl_col\"><\/a><strong>Column name<\/strong>\n<p style=\"text-align:left\">\n          Table column name with user ID or field in the <a href=\"#dep_grp_tbl_namerel\">related table name<\/a>.\n        <\/p>\n<\/li>\n<li><a id=\"dep_grp_tbl_namerel\"><\/a><strong>Related table name<\/strong>\n<p style=\"text-align:left\">\n          Database name of the related to the <a href=\"#dep_grp_tbl_name\">initial table<\/a>. Template <code>%PREFIX%<\/code> can be also used.\n        <\/p>\n<\/li>\n<li><a id=\"dep_grp_tbl_colrel\"><\/a><strong>Column name in related table<\/strong>\n<p style=\"text-align:left\">\n          Table column name with user ID.\n        <\/p>\n<\/li>\n<li><a id=\"dep_grp_tbl_colrellink\"><\/a><strong>Link ID column name in related table<\/strong>\n<p style=\"text-align:left\">\n          Table column name that pointed from an <a href=\"#dep_grp_tbl_col\">initial table column<\/a>.\n        <\/p>\n<\/li>\n<li><a id=\"dep_grp_tbl_cond\"><\/a><strong>Column conditions in related table<\/strong>\n<p style=\"text-align:left\">\n          Filters rows in the <a href=\"#dep_grp_tbl_namerel\">related table<\/a> by specified conditions. It can be added multiple conditions at once via separating by semicolons.\n        <\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a id=\"dep_grp_tbl_example\"><\/a>Let&#8217;s look at the example by WooCommerce.\n<\/p>\n<p style=\"text-align:justify\">\n  This plugin has its own post type to provide customer (user) orders storing. When the order is changed, we need to find out the related user ID and revalidate its cached data. So, orders are stored in the <code>wp_posts<\/code> table and column <code>ID<\/code> contains the order ID. Next, each order has information about the customer (user) that is stored in the post\u2019s meta table named <code>wp_postmeta<\/code> with <code>meta_key<\/code> = <code>_customer_user<\/code>, <code>post_id<\/code> contains order ID, and <code>meta_value<\/code> contains needed user ID.\n<\/p>\n<p>\n  Finally, the depended table settings will be:\n<\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"width:9.419753086419753cm;vertical-align:top\"><strong>Table name<\/strong>\n      <\/td>\n<td style=\"width:9.419753086419753cm;vertical-align:top\">\n        %PREFIX%posts\n      <\/td>\n<\/tr>\n<tr>\n<td style=\"width:9.419753086419753cm;vertical-align:top\"><strong>Column name<\/strong>\n      <\/td>\n<td style=\"width:9.419753086419753cm;vertical-align:top\">\n        ID\n      <\/td>\n<\/tr>\n<tr>\n<td style=\"width:9.419753086419753cm;vertical-align:top\"><strong>Related table name<\/strong>\n      <\/td>\n<td style=\"width:9.419753086419753cm;vertical-align:top\">\n        %PREFIX%postmeta\n      <\/td>\n<\/tr>\n<tr>\n<td style=\"width:9.419753086419753cm;vertical-align:top\"><strong>Column name in related table<\/strong>\n      <\/td>\n<td style=\"width:9.419753086419753cm;vertical-align:top\">\n        meta_value\n      <\/td>\n<\/tr>\n<tr>\n<td style=\"width:9.419753086419753cm;vertical-align:top\"><strong>Link ID column name in related table<\/strong>\n      <\/td>\n<td style=\"width:9.419753086419753cm;vertical-align:top\">\n        post_id\n      <\/td>\n<\/tr>\n<tr>\n<td style=\"width:9.419753086419753cm;vertical-align:top\"><strong>Column conditions in related table<\/strong>\n      <\/td>\n<td style=\"width:9.419753086419753cm;vertical-align:top\">\n        meta_key = _customer_user\n      <\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>It\u2019s the most complex settings in the product. Cache Enable Enables users caching. Due to users caching is a very complex thing we always ready to assist you in its setup. Also, in this mode additional cookie __Secure-wp_seraph_accel_sess_* is set when caching session is active. Only for fresh parts If enabled then checking user session&#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-4836","doc","type-doc","status-publish","hentry","category-accelerator"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/4836","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=4836"}],"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=4836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/categories?post=4836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/tags?post=4836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}