nocache_headers

Set the headers to prevent caching for the different browsers.

Description

nocache_headers(); 

Different browsers support different nocache headers, so several headers must be sent so that all of them get the point that no caching should occur.


Usage

  1. if ( !function_exists( 'nocache_headers' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/backpress/functions.core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nocache_headers(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-includes/backpress/functions.core.php  
  1. function nocache_headers() { 
  2. $headers = wp_get_nocache_headers(); 
  3. foreach( (array) $headers as $name => $field_value ) 
  4. @header("{$name}: {$field_value}");