Pass normalized component paths to freshness checks
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ StringList compiler_list_known_units(Request* context);
|
|||||||
void compiler_set_known_units(Request* context, StringList files);
|
void compiler_set_known_units(Request* context, StringList files);
|
||||||
void compiler_track_known_unit(Request* context, String file_name);
|
void compiler_track_known_unit(Request* context, String file_name);
|
||||||
void compiler_untrack_known_unit(Request* context, String file_name);
|
void compiler_untrack_known_unit(Request* context, String file_name);
|
||||||
bool compiler_unit_needs_recompile(Request* context, String file_name, bool* source_missing = 0, bool allow_recent_source_stat = false);
|
bool compiler_unit_needs_recompile(Request* context, String file_name, bool* source_missing = 0, bool allow_recent_source_stat = false, bool path_is_normalized = false);
|
||||||
DValue unit_info(String path = "");
|
DValue unit_info(String path = "");
|
||||||
StringList units_list();
|
StringList units_list();
|
||||||
bool unit_compile(String path = "");
|
bool unit_compile(String path = "");
|
||||||
|
|||||||
+1
-1
@@ -2210,7 +2210,7 @@ private:
|
|||||||
now - cached_freshness->second.checked_at).count() >= 1000;
|
now - cached_freshness->second.checked_at).count() >= 1000;
|
||||||
if(check_freshness)
|
if(check_freshness)
|
||||||
{
|
{
|
||||||
stale = compiler_unit_needs_recompile(context, resolved, 0, can_serve_stale && read_request);
|
stale = compiler_unit_needs_recompile(context, resolved, 0, can_serve_stale && read_request, true);
|
||||||
worker.component_freshness[resolved] = { now, stale };
|
worker.component_freshness[resolved] = { now, stale };
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user