public/wordpress/wp-content/plugins/wp-courseware/includes/core/cache.php
/**
	 * Prevent Caching.
	 *
	 * This prevents caching on certain pages.
	 *
	 * @since 4.3.0
	 */
Prevent Caching.
This prevents caching on certain pages.


Prevent Caching . This prevents caching on certain pages .
public function prevent_caching() {
		if ( ! is_blog_installed() ) {
			return;
		}
		$page_ids = array_filter( array(
			wpcw_get_page_id( 'checkout' ),
			wpcw_get_page_id( 'account' ),
			wpcw_get_page_id( 'order-received' ),
			wpcw_get_page_id( 'order-failed' ),
		) );
		if ( is_page( $page_ids ) ) {
			$this->set_nocache_constants();
			nocache_headers();
		}
	}
public function prevent_caching ( ) { if ( ! is_blog_installed ( ) ) { return ; } $ page_ids = array_filter ( array ( wpcw_get_page_id ( 'checkout' ) , wpcw_get_page_id ( 'account' ) , wpcw_get_page_id ( 'order-received' ) , wpcw_get_page_id ( 'order-failed' ) , ) ) ; if ( is_page ( $ page_ids ) ) { $ this -> set_nocache_constants ( ) ; nocache_headers ( ) ; } }
Prevent Caching.
Prevent Caching .