Skip to content

Commit 789f313

Browse files
committed
Split editor documentation cache by minor version
This avoids conflicts with other editor versions and ensures the cache remains valid if you regularly switch between editor versions.
1 parent 1d57b81 commit 789f313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/editor_help.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2856,7 +2856,7 @@ void EditorHelp::_compute_doc_version_hash() {
28562856
}
28572857

28582858
String EditorHelp::get_cache_full_path() {
2859-
return EditorPaths::get_singleton()->get_cache_dir().path_join("editor_doc_cache.res");
2859+
return EditorPaths::get_singleton()->get_cache_dir().path_join(vformat("editor_doc_cache-%d.%d.res", VERSION_MAJOR, VERSION_MINOR));
28602860
}
28612861

28622862
void EditorHelp::load_xml_buffer(const uint8_t *p_buffer, int p_size) {

0 commit comments

Comments
 (0)