post_name; } if ( ! is_null( $success_page ) ) { $page_uris[] = '/' . $success_page->post_name; } set_transient( 'edd_cache_excluded_uris', $page_uris ); } if ( is_array( $page_uris ) ) { foreach ( $page_uris as $uri ) { if ( strstr( $_SERVER['REQUEST_URI'], $uri ) ) { $this->nocache(); break; } } } } /** * Set nocache constants and headers. * * @since 1.7 * @access private */ private function nocache() { if ( ! defined( 'DONOTCACHEPAGE' ) ) { define( 'DONOTCACHEPAGE', 'true' ); } nocache_headers(); } /** * Admin notices. * * @since 1.7 */ public function notices() { // W3 Total Cache. if ( function_exists( 'w3tc_pgcache_flush' ) && function_exists( 'w3_instance' ) ) { $config = w3_instance( 'W3_Config' ); $enabled = $config->get_integer( 'dbcache.enabled' ); $settings = $config->get_array( 'dbcache.reject.sql' ); if ( $enabled && ! in_array( '_wp_session_', $settings, true ) ) { ?>
database caching to work with Easy Digital Downloads you must add _wp_session_
to the "Ignored query stems" option in W3 Total Cache settings here.', 'easy-digital-downloads' ),
esc_url( admin_url( 'admin.php?page=w3tc_dbcache' ) )
);
?>