示例#1
0
 /**
  * Handles no-cache constants, and no-cache headers.
  *
  * @package optimizeMember\No_Cache
  * @since 3.5
  *
  * @attaches-to ``add_action("init");``
  * @also-called-by Other routines within optimizeMember.
  *
  * @param bool $no_cache Optional. Defaults to false. If true, force no-cache if at all possible.
  * @return bool This function will always return `true`.
  */
 public static function no_cache($no_cache = FALSE)
 {
     do_action("ws_plugin__optimizemember_before_no_cache", get_defined_vars());
     /**/
     c_ws_plugin__optimizemember_no_cache::no_cache_constants($no_cache) . c_ws_plugin__optimizemember_no_cache::no_cache_headers($no_cache);
     /**/
     do_action("ws_plugin__optimizemember_after_no_cache", get_defined_vars());
     /**/
     return true;
     /* Always return true. */
 }