diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-07-31 17:17:45 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2024-07-31 17:17:45 +0200 |
commit | 789f3135adefe57c71176986ee9016d25125f9b0 (patch) | |
tree | 40dd47ec19e90e740559c46175fc423849ad8bed /editor/editor_help.cpp | |
parent | 1d57b81d2610f8c104fcead874995a583274d12d (diff) | |
download | redot-engine-789f3135adefe57c71176986ee9016d25125f9b0.tar.gz |
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.
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r-- | editor/editor_help.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 5725129f65..637c39c8ec 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -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) { |