Skip to content

Commit

Permalink
Split editor documentation cache by minor version
Browse files Browse the repository at this point in the history
This avoids conflicts with other editor versions and ensures the
cache remains valid if you regularly switch between editor versions.
  • Loading branch information
Calinou authored and debian build committed Jul 31, 2024
1 parent 700fab9 commit 2b96979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/editor_help.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2856,7 +2856,7 @@ void EditorHelp::_compute_doc_version_hash() {
}

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

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

0 comments on commit 2b96979

Please sign in to comment.