PHP Composer: Debugging a Cache Miss for a Custom Repository's packages.json -


I am using PHP composer with a custom repository. For reasons which are beyond my ability to debug itself, the composer is downloading the packages.json every time of the repository I runs a command $ composer.phar --profile -vvv --no-dev --repository-url = http: //packages.firegento.com Make-project magma-heathon / magma-composer-installer [4.2 MB / 0.05S] Download http://packages.firegento.com/packages.json [70.6 MB / 152.18 S] Writing / Users / AlanStorm / dot Commerce / Cash / Depot / HTTP- - Package. In the .com / packages.json cache ... $ composer.phar --profile -vvv update [3.7 MB / 0.01s] Reading ./composer.json [4.2MB / 0.02s] Implemented Command (CWD): GIT Description - Xact-Match - Totes [4.4 MB / 0.03 C] Executed Command (CWD): GIT Branch --NO-color --NO-abbrev -v [4.5 MB / 0.05 S] Executed Command (CWD): Hg Branch [ 4.5 MB / 0.12s] Command implemented (CWD): svn info -xml [6.6MB / 0.17s] Loading composer stores with package information [6.8MB / 0.19s] Downloadable http://packages.firegento.com/packages.json [73.2 MB / 125.50s] Writing / users / Alanstorm / Compojhr / cache / Depot / JP .--- package. Firegroup.com In the cache

this 152.18

this standard packager packages.json

p>

/ code>, which the musician once downloads and then reads from the cache.

How can I debug more of this cache? I do not know a lot about the composer, "I need to capture it with cash", and I do not control the custom repository server. Apart from this, it is possible that I am completely wrong about cash hit / mis theory, so any other idea is appreciated on this slow behavior.

The creator does not cache by design, main packages.json File, so my question about a cash missile was invalid. If you are looking for slow downloads of packages.json , your best bet is

  1. Gizp compression on the server serving this file Enable.

  2. Split the packages.json file into multiple files.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -