Repository navigation
Install specific Cachetool version #4160
Replies: 1 comment
|
Both already work with the recipe's own settings. The recipe never uses a require 'contrib/cachetool.php';
// pin an exact version (keep it in sync with your local one)
set('cachetool_url', 'https://github.com/gordalina/cachetool/releases/download/<version>/cachetool.phar');
// or always take the newest release
set('cachetool_url', 'https://github.com/gordalina/cachetool/releases/latest/download/cachetool.phar');The one case where your pinned version is not used is when a set('bin/cachetool', function () {
run('cd {{release_or_current_path}} && curl -sSfL -o cachetool.phar {{cachetool_url}}');
return '{{release_or_current_path}}/cachetool.phar';
});Check the CacheTool major against the PHP version on the server when you use "latest" (the comment in the recipe lists 9.x for PHP ≥ 8.1, 8.x for 8.0, 7.x for 7.3). If this solves it, please mark it as the answer so others with the same problem can find it. |
Uh oh!
There was an error while loading. Please reload this page.
It would be nice if you could force use a specific Cachetool version on the target system instead of only installing a specific version if Cachetool is not installed yet. This helps to align your local and remote environments and to have full version control. Furthermore, it would be comfortable to not have to increase the default version manually but to fallback to "latest" always.
All reactions