fix: [stix] Store synonymsToTagNames.json file in tmp folder

pull/6071/head
Jakub Onderka 2020-06-28 15:33:25 +02:00 committed by GitHub
parent 26ae7faa53
commit f910b32ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -5827,7 +5827,7 @@ class Event extends AppModel
private function __getTagNamesFromSynonyms($scriptDir)
{
$synonymsToTagNames = $scriptDir . DS . 'synonymsToTagNames.json';
$synonymsToTagNames = $scriptDir . DS . 'tmp' . DS . 'synonymsToTagNames.json';
if (!file_exists($synonymsToTagNames) || (time() - filemtime($synonymsToTagNames)) > 600) {
if (empty($this->GalaxyCluster)) {
$this->GalaxyCluster = ClassRegistry::init('GalaxyCluster');