ache', 'must-revalidate', 'max-age=0', 'no-store', ); if ( ! empty($headers['Cache-Control'])) { $original_headers_cache_control = array_map('trim', explode(',', $headers['Cache-Control'])); // Merge original headers with our nocache headers. $nocache_headers_cache_control = array_merge($nocache_headers_cache_control, $original_headers_cache_control); // Avoid duplicates. $nocache_headers_cache_control = array_unique($nocache_headers_cache_control); } $headers['Cache-Control'] = implode(', ', $nocache_headers_cache_control); return $headers; } /** * Sets a browser cookie that tells WP Engine to exclude a page from server caching. * * @see https://wpengine.com/support/cache/#Default_Cache_Exclusions * @see https://wpengine.com/support/determining-wp-engine-environment/ * * @return void */ public function exclude_page_from_wpe_server_cache() { if (function_exists('is_wpe') && is_wpe()) { /* * If "Settings -> Permalinks" is "Plain", i.e. the `permalink_structure` option is '', * allow the entire site to be cached by WP Engine. * Note: This will prevent users from being able to successfully use the "Lost your password?" feature. */ if (isset($GLOBALS['wp_rewrite']) && ! $GLOBALS['wp_rewrite']->using_permalinks()) { return; } $path = wp_parse_url(get_permalink(), PHP_URL_PATH); $cookie_domain = ! defined('COOKIE_DOMAIN') ? false : COOKIE_DOMAIN; setcookie('wordpress_wpe_no_cache', '1', 0, $path, $cookie_domain, is_ssl(), true); } } /** * Sets a browser cookie that tells Pantheon to exclude a page from server caching. * * @see https://docs.pantheon.io/cookies#disable-caching-for-specific-pages * * @return void */ public function exclude_page_from_pantheon_server_cache() { if (apply_filters('ppress_enable_pantheon_caching_exclusion', true) && ! empty($_ENV['PANTHEON_ENVIRONMENT'])) { $domain = $_SERVER['HTTP_HOST']; $path = wp_parse_url(get_permalink(), PHP_URL_PATH); setcookie('NO_CACHE', '1', time() + 0, $path, $domain); } } }
Fatal error: Uncaught Error: Class "ProfilePress\Core\Membership\Controllers\FrontendController" not found in /htdocs/wp-content/plugins/wp-user-avatar/src/Membership/Init.php:29 Stack trace: #0 /htdocs/wp-content/plugins/wp-user-avatar/src/Base.php(180): ProfilePress\Core\Membership\Init::init() #1 /htdocs/wp-content/plugins/wp-user-avatar/src/Base.php(301): ProfilePress\Core\Base->__construct() #2 /htdocs/wp-content/plugins/wp-user-avatar/wp-user-avatar.php(27): ProfilePress\Core\Base::get_instance() #3 /htdocs/wp-settings.php(560): include_once('/htdocs/wp-cont...') #4 /htdocs/wp-config.php(98): require_once('/htdocs/wp-sett...') #5 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #6 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #7 /htdocs/index.php(17): require('/htdocs/wp-blog...') #8 {main} thrown in /htdocs/wp-content/plugins/wp-user-avatar/src/Membership/Init.php on line 29