composer: Composer doesn't cache Toran Proxy JSON files
When packagist: false
is enabled and I proxy all public packages through my Toran Proxy instance Composer doesn’t make use of cached JSON files that it downloaded previously (even if I ran composer up
just a few seconds before).
Removing the proxying and re-enabling Packagist results in Composer using the locally cached JSON files.
Is this expected behaviour?
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 21 (5 by maintainers)
Toran 1.3.0 released just now fixes this (and some other issues/features). Sorry for taking so long to get to this, but hopefully it’ll be worth it.
Note that Composer will still download the files (due to what I explained in https://github.com/composer/composer/issues/3799#issuecomment-76410381) but they are now static files on disk and not hitting php every time so it is returned by the web server a lot faster, and Composer will also fetch the files it has in cache sending an If-Modified-Since header so if your webserver is configured correctly it’ll just return a Not Modified response and in cases where the cache is up to date.
Full changelog of 1.3 + 1.2 which were both released this week:
bin/cron <packagename>
Documentation > FAQ > How to create private packages programmatically?
You can run “php app/console toran:update” to update. If you hit any regression please let me know by email at toran@nelm.io and I’ll try to push out a fix ASAP.