diff --git a/distrib/idea/IDEAPlugin-3.1.1.zip b/distrib/idea/IDEAPlugin-3.3.0.zip similarity index 86% rename from distrib/idea/IDEAPlugin-3.1.1.zip rename to distrib/idea/IDEAPlugin-3.3.0.zip index b1fe6689..854ed8b4 100644 Binary files a/distrib/idea/IDEAPlugin-3.1.1.zip and b/distrib/idea/IDEAPlugin-3.3.0.zip differ diff --git a/public/metamodel/dochub/entities/contexts/plantuml.yaml b/public/metamodel/dochub/entities/contexts/plantuml.yaml index 5e668653..2d2bf245 100644 --- a/public/metamodel/dochub/entities/contexts/plantuml.yaml +++ b/public/metamodel/dochub/entities/contexts/plantuml.yaml @@ -52,8 +52,10 @@ entities: & "\", \"" & "[[/architect/components/" & $domain & " " & $component.title & "]]" & "\", " - & $domain - & ", )\n"; + & $domain + & ", \"" + & $component.type + & "\" )\n"; /* Добавляем аспекты */ $result := $result & $join($component.aspects.( diff --git a/src/backend/controllers/core.mjs b/src/backend/controllers/core.mjs index c4c698e4..96772b4f 100644 --- a/src/backend/controllers/core.mjs +++ b/src/backend/controllers/core.mjs @@ -53,6 +53,7 @@ export default (app) => { } else { storeManager.reloadManifest() .then((storage) => storeManager.applyManifest(app, storage)) + .then(cache.clearCache) .then(() => res.json({ message: 'success' })); } }); diff --git a/src/backend/storage/cache.mjs b/src/backend/storage/cache.mjs index 36ea66f6..7a051450 100644 --- a/src/backend/storage/cache.mjs +++ b/src/backend/storage/cache.mjs @@ -23,7 +23,7 @@ function loadBaseMatamodel() { } // Кэш в памяти -const memoryCache = {}; +let memoryCache = {}; const errorType = { system: 'Внутрисистемная ошибка', @@ -40,6 +40,22 @@ export default Object.assign(prototype, { errorClear() { this.errors = {}; }, + clearCache() { + const cacheMode = process.env.VUE_APP_DOCHUB_DATALAKE_CACHE || 'none'; + switch (cacheMode.toLocaleLowerCase()) { + case 'none': return; + case 'memory': memoryCache = {}; break; + default: { + const cacheDir = path.resolve(__dirname, '../../../', cacheMode); + fs.readdir(cacheDir, (err, files) => { + if (err) throw err; + for (const file of files) { + fs.unlink(`${cacheDir}/${file}`, err => logger.error(err, LOG_TAG)); + } + }); + } + } + }, // Регистрирует ошибку // type - Секция ошибки (system/syntax/net) // uid - Уникальный идентификатор ошибки.