wearerequired / composer-scripts

🧰 A collection of useful Composer scripts and commands, especially for WordPress projects.
https://packagist.org/packages/wearerequired/composer-scripts
4 stars 0 forks source link

Cache results #1

Closed swissspidy closed 10 months ago

swissspidy commented 7 years ago

In PluginAvailability, the very least we can do is to only make 1 HTTP per plugin.

Even better: we use Composer\Cache to store the status information globally for a certain amount of time. This would be ideal when using the script in lots of projects.

swissspidy commented 7 years ago

Implementing #3 would make this rather easy. We can simply store the resulting JSON files in a separate folder in the global composer directory thanks to Composer\Cache.