Skip to content

Commit 2aae37e

Browse files
author
taras
committed
Add Laravel 6 support
- replace TTL values from minutes to seconds - update composer
1 parent e1ff158 commit 2aae37e

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"minimum-stability": "dev",
3131
"prefer-stable": true,
3232
"require": {
33-
"dreamfactory/df-core": "~0.15.3",
34-
"dreamfactory/df-system": "~0.2.2"
33+
"dreamfactory/df-core": "~0.16.0",
34+
"dreamfactory/df-system": "~0.3.0"
3535
},
3636
"autoload": {
3737
"psr-4": {

src/Engines/NodeJs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function enrobeScript($script, array &$data = [], array $platform = []
7373
'app_id' => array_get($platform, 'session.app.id'),
7474
'user_id' => array_get($platform, 'session.user.id')
7575
];
76-
Cache::add('script-token:' . $token, $tokenCache, 5); // script should not take longer than 5 minutes to run
76+
Cache::add('script-token:' . $token, $tokenCache, 300); // script should not take longer than 300 seconds to run
7777

7878
// Load user libraries
7979
//$requiredLibraries = Cache::get('scripting.libraries.nodejs.required', null);

src/Engines/Python.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function enrobeScript($script, array &$data = [], array $platform = []
7878
'app_id' => array_get($platform, 'session.app.id'),
7979
'user_id' => array_get($platform, 'session.user.id')
8080
];
81-
Cache::add('script-token:'.$token, $tokenCache, 5); // script should not take longer than 5 minutes to run
81+
Cache::add('script-token:'.$token, $tokenCache, 300); // script should not take longer than 300 seconds to run
8282

8383
if (empty($script)) {
8484
$script = 'pass;';

src/Engines/Python3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function enrobeScript($script, array &$data = [], array $platform = []
7777
'app_id' => array_get($platform, 'session.app.id'),
7878
'user_id' => array_get($platform, 'session.user.id')
7979
];
80-
Cache::add('script-token:'.$token, $tokenCache, 5); // script should not take longer than 5 minutes to run
80+
Cache::add('script-token:'.$token, $tokenCache, 300); // script should not take longer than 300 seconds to run
8181

8282
if (empty($script)) {
8383
$script = 'pass;';

0 commit comments

Comments
 (0)