refactor: extract DEFAULT_REJECTED_COOKIES constant and rename create_cache_server

This commit is contained in:
2026-09-13 17:21:36 +02:00
parent 94eea83d60
commit 22230d188b
6 changed files with 18 additions and 49 deletions
+7
View File
@@ -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';