Skip to content

Cache effectively#59

Merged
weirdan merged 4 commits intopsalm:masterfrom
weirdan:cache-effectively
Apr 1, 2020
Merged

Cache effectively#59
weirdan merged 4 commits intopsalm:masterfrom
weirdan:cache-effectively

Conversation

@weirdan
Copy link
Copy Markdown
Member

@weirdan weirdan commented Mar 30, 2020

Instead of caching the vendor folder (which changes for every job, as different levels of dependencies are installed) we now cache composer cache folders (where it stores downloaded packages and cloned repos).

This should make caching much more effective, without introducing any persistent issues (as metadata used for dependency resolution is not cached).

Note that caches won't be available on the first build. I'll add a test commit once the initial build completes.

weirdan added 3 commits March 31, 2020 00:10
Instead of caching the vendor folder (which changes for every job, as
different levels of dependencies are installed) we now cache composer
cache folders (where it stores downloaded packages and cloned repos).
This should make caching much more effective, without introducing any
persistance issues (as metadata used for dependency resolution is not
cached).
`ocramius/package-versions` changes the file it installs, so composer
may notice this (when the package is installed from source?) and refuse
upgrade/downgrade.
@weirdan
Copy link
Copy Markdown
Member Author

weirdan commented Mar 30, 2020

Composer is very slow on travis right now.

@weirdan weirdan merged commit d3c9662 into psalm:master Apr 1, 2020
@weirdan weirdan deleted the cache-effectively branch April 1, 2020 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant