Merge branch 'pr/16301'
This commit is contained in:
commit
e4fd620214
|
@ -156,9 +156,8 @@ class WC_Cache_Helper {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$page_ids = array_filter( array( wc_get_page_id( 'cart' ), wc_get_page_id( 'checkout' ), wc_get_page_id( 'myaccount' ) ) );
|
$page_ids = array_filter( array( wc_get_page_id( 'cart' ), wc_get_page_id( 'checkout' ), wc_get_page_id( 'myaccount' ) ) );
|
||||||
$current_page_id = get_queried_object_id();
|
|
||||||
|
|
||||||
if ( isset( $_GET['download_file'] ) || in_array( $current_page_id, $page_ids ) ) {
|
if ( isset( $_GET['download_file'] ) || is_page( $page_ids ) ) {
|
||||||
self::nocache();
|
self::nocache();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue