keep web requests off rebuild path
This commit is contained in:
@@ -975,6 +975,13 @@ bool compiler_unit_compile_in_progress(Request* context, String file_name)
|
||||
return(false);
|
||||
}
|
||||
|
||||
bool compiler_request_can_serve_stale_artifact(Request* context)
|
||||
{
|
||||
return(context && context->server && !context->resources.is_cli &&
|
||||
to_bool(context->server->config["PROACTIVE_COMPILE_ENABLED"], true) &&
|
||||
float_val(context->server->config["PROACTIVE_COMPILE_CHECK_INTERVAL"]) > 0);
|
||||
}
|
||||
|
||||
void unit_render(String file_name)
|
||||
{
|
||||
unit_render(file_name, *context);
|
||||
|
||||
Reference in New Issue
Block a user