Skip to content

Commit d9b4d1f

Browse files
committed
Fix cache store name to language script runner
1 parent 36a738a commit d9b4d1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ProcessMaker/Helpers/ScriptMicroservicesHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function getScriptRunner($language, $executorUuid, $custom = false
3737
config('script-runner-microservice.base_url') . '/custom/' . config('script-runner-microservice.instance_uuid') . '/scripts';
3838

3939
if (!$custom && Cache::has('script-runner-microservice.script-runner')) {
40-
return Cache::get('script-runner-microservice.script-runner');
40+
return Cache::get('script-runner-microservice.script-runner.' . $language);
4141
} elseif ($custom && Cache::has('script-runner-microservice.custom-script-runner.' . $executorUuid)) {
4242
return Cache::get('script-runner-microservice.custom-script-runner.' . $executorUuid);
4343
}
@@ -52,7 +52,7 @@ public static function getScriptRunner($language, $executorUuid, $custom = false
5252
})->first();
5353

5454
if (!$custom) {
55-
Cache::put('script-runner-microservice.script-runner', $result, now()->addHour());
55+
Cache::put('script-runner-microservice.script-runner.' . $language, $result, now()->addHour());
5656
} else {
5757
Cache::put('script-runner-microservice.custom-script-runner.' . $executorUuid, $result, now()->addHour());
5858
}

0 commit comments

Comments
 (0)