fix(composer): autoload `_cache_invalid` for antigen compatibility
Antigen doesn't call `compinit` until the user prompt is about to be shown,
which means `_cache_invalid` isn't automatically autoloaded. This patch
fixes that, though we should work towards a better caching mechanism.
Fixes #9490
Diff
1diff --git a/plugins/composer/composer.plugin.zsh b/plugins/composer/composer.plugin.zsh
2index 75b03ffe74975adb5db21d544eb61968f3b23047..218a13e5f116d8089de06ab8cd28d6ef590848ad 100644
3--- a/plugins/composer/composer.plugin.zsh
4+++ b/plugins/composer/composer.plugin.zsh
5@@ -51,7 +51,7 @@ alias cget='curl -s https://getcomposer.org/installer | php'
6 7 # Add Composer's global binaries to PATH, using Composer if available.
8 if (( $+commands[composer] )); then
9- autoload -Uz _store_cache _retrieve_cache
10+ autoload -Uz _store_cache _retrieve_cache _cache_invalid
1112 _retrieve_cache composer
13