Elementor\Utils::do_not_cache PHP Method

do_not_cache() public static method

Tell to WP Cache plugins do not cache this request.
public static do_not_cache ( ) : void
return void
    public static function do_not_cache()
    {
        if (!defined('DONOTCACHEPAGE')) {
            define('DONOTCACHEPAGE', true);
        }
        if (!defined('DONOTCACHEDB')) {
            define('DONOTCACHEDB', true);
        }
        if (!defined('DONOTMINIFY')) {
            define('DONOTMINIFY', true);
        }
        if (!defined('DONOTCDN')) {
            define('DONOTCDN', true);
        }
        if (!defined('DONOTCACHCEOBJECT')) {
            define('DONOTCACHCEOBJECT', true);
        }
        // Set the headers to prevent caching for the different browsers
        nocache_headers();
    }