You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wp plugin install https://github.com/woocommerce/woocommerce/releases/download/7.6.1/woocommerce.zip --force
Downloading installation package from https://github.com/woocommerce/woocommerce/releases/download/7.6.1/woocommerce.zip...
Using cached file '/var/cd-cache/.wp-cli/cache/plugin/woocommerce-github.zip'...
Unpacking the package...
Installing the plugin...
Removing the old version of the plugin...
Plugin updated successfully.
Success: Installed 1 of 1 plugins
The problem here seems to be how to invalidate cache if the remote URL changed. The approach that I'm taking is caching for 1 day, which is a short period compared to the default 6 months of TTL.
The text was updated successfully, but these errors were encountered:
Feature Request
Describe your use case and the problem you are facing
Downloads from
wp plugin install <GitHub URL>
are not cached.Describe the solution you'd like
I'd like these downloads to be cached, or maybe optionally cached.
Eg:
wp plugin install https://github.com/woocommerce/woocommerce/releases/download/7.6.1/woocommerce.zip
I don't know if this is the best possible solution, but I'm currently using this mu-plugin in my site to cache GitHub downloads:
Result:
The problem here seems to be how to invalidate cache if the remote URL changed. The approach that I'm taking is caching for 1 day, which is a short period compared to the default 6 months of TTL.
The text was updated successfully, but these errors were encountered: