-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gpm install: cache downloads (enhancement request) #1243
Comments
I like the idea of caching the packages downloaded. It might not really be that beneficial if you only run 1 site as all you would do is caching new releases after new releases. Although if you have more than 1 instance this could be quite useful and a bandwidth saver. We would have to take into consideration a cleanup mechanism as well because we don't want the cache folder to just grow unconditionally, especially so considering most hosting services have a quota limit. Re your second suggestion, not sure you are aware that this is already possible via |
@w00fz, thanks for the Maybe a parameter |
👍 on caching files locally, mostly because of its really useful also on automated build system as well. There are a few things to consider:
On |
I'd like to request two features for the grav package manager regarding installation of themes and plugins.
gpm install
will always download the plugin or theme. Maybe it would be possible to cache downloads in user home like composer does (i.e. download to~/.grav/cache
), if requested file is present in the cache it would be (optionally?) verifyed but not downloaded again and taken from there.Currently
gpm install
only installs the latest tagged version. There are several scenarios where it is usefull to install a specific version of a plugin/theme so I'd like to propose a--version
parameter to install a specific tag/branch/commit.--version=dev-master
), ie. a commit has not been tagged yet (like hpstr theme has been tagged 1.5.0 in July 2016 but fixed in September)--version=1.1.0
,--version=6a0ffcc
), i.e. due to compatibility issues like if a deploy script would install an older grav version than current the required plugin/theme version is not sticky and may result in errorsOne of the packages require Grav >=1.1.9. Please update Grav to the latest release.
The text was updated successfully, but these errors were encountered: