浏览代码

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.
Hugo Locurcio 1 年之前
父节点
当前提交
789f3135ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/editor_help.cpp

+ 1 - 1
editor/editor_help.cpp

@@ -2856,7 +2856,7 @@ void EditorHelp::_compute_doc_version_hash() {
 }
 }
 
 
 String EditorHelp::get_cache_full_path() {
 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) {
 void EditorHelp::load_xml_buffer(const uint8_t *p_buffer, int p_size) {