/** * Handles no-cache constants, and no-cache headers. * * @package s2Member\No_Cache * @since 3.5 * * @attaches-to ``add_action("init");`` * @also-called-by Other routines within s2Member. * * @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__s2member_before_no_cache", get_defined_vars()); c_ws_plugin__s2member_no_cache::no_cache_constants($no_cache) . c_ws_plugin__s2member_no_cache::no_cache_headers($no_cache); do_action("ws_plugin__s2member_after_no_cache", get_defined_vars()); return true; // Always return true. }