@@ -58,13 +58,13 @@ discard block |
||
58 | 58 | */ |
59 | 59 | set('cachetool_url', 'https://github.com/gordalina/cachetool/releases/download/9.1.0/cachetool.phar'); |
60 | 60 | set('cachetool_args', ''); |
61 | -set('bin/cachetool', function () { |
|
61 | +set('bin/cachetool', function() { |
|
62 | 62 | if (!test('[ -f {{release_or_current_path}}/cachetool.phar ]')) { |
63 | 63 | run("cd {{release_or_current_path}} && curl -sLO {{cachetool_url}}"); |
64 | 64 | } |
65 | 65 | return '{{release_or_current_path}}/cachetool.phar'; |
66 | 66 | }); |
67 | -set('cachetool_options', function () { |
|
67 | +set('cachetool_options', function() { |
|
68 | 68 | $options = (array) get('cachetool'); |
69 | 69 | $fullOptions = (string) get('cachetool_args'); |
70 | 70 | $return = []; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * Clear opcache cache |
87 | 87 | */ |
88 | 88 | desc('Clears OPcode cache'); |
89 | -task('cachetool:clear:opcache', function () { |
|
89 | +task('cachetool:clear:opcache', function() { |
|
90 | 90 | $options = get('cachetool_options'); |
91 | 91 | foreach ($options as $option) { |
92 | 92 | run("cd {{release_or_current_path}} && {{bin/php}} {{bin/cachetool}} opcache:reset $option"); |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * Clear APCu cache |
98 | 98 | */ |
99 | 99 | desc('Clears APCu system cache'); |
100 | -task('cachetool:clear:apcu', function () { |
|
100 | +task('cachetool:clear:apcu', function() { |
|
101 | 101 | $options = get('cachetool_options'); |
102 | 102 | foreach ($options as $option) { |
103 | 103 | run("cd {{release_or_current_path}} && {{bin/php}} {{bin/cachetool}} apcu:cache:clear $option"); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * Clear file status cache, including the realpath cache |
109 | 109 | */ |
110 | 110 | desc('Clears file status and realpath caches'); |
111 | -task('cachetool:clear:stat', function () { |
|
111 | +task('cachetool:clear:stat', function() { |
|
112 | 112 | $options = get('cachetool_options'); |
113 | 113 | foreach ($options as $option) { |
114 | 114 | run("cd {{release_or_current_path}} && {{bin/php}} {{bin/cachetool}} stat:clear $option"); |