refactor: extract DEFAULT_REJECTED_COOKIES constant and rename create_cache_server
This commit is contained in:
@@ -21,6 +21,13 @@ define('WP_RECACHE_PATH', plugin_dir_path(__FILE__));
|
||||
define('WP_RECACHE_URL', plugin_dir_url(__FILE__));
|
||||
define('WP_RECACHE_INC_PATH', WP_RECACHE_PATH . 'includes/');
|
||||
define('WP_RECACHE_CACHE_PATH', WP_CONTENT_DIR . '/cache/wp-recache/');
|
||||
define('WP_RECACHE_DEFAULT_REJECTED_COOKIES', [
|
||||
'woocommerce_items_in_cart',
|
||||
'wp_woocommerce_session_*',
|
||||
'wp-postpass',
|
||||
'comment_author_*',
|
||||
'wordpress_*',
|
||||
]);
|
||||
|
||||
require_once WP_RECACHE_INC_PATH . 'Common/Helpers.php';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user