New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't disable modules caching #391
Comments
The
So, the behavior is correct, metadata is hosted, this might be changed but honestly, I do not see a big problem to host small metadata files. Please feel free to PR any improvement to the current disable cache approach. |
I like the idea of being able to at least separate the local internal packages that are only published to the verdaccio server and the proxied packages. It makes it much easier to backup/store/version. I was hoping to set This configuration option is a little confusing. Since it does actually cache things. I understand this is a breaking change but I would recommend we think about this for v3. |
thanks @drubin I'll definitely take a look. I'm sure there is a lot room for improvement |
@juanpicado @drubin I think that this can easily be changed, that is, also dropping the cached meta data from the local repository. I kept the meta data in place in order to speed things up a bit in case that the meta data did not change. @drubin feel free to provide a PR for this. alternatively I can look at the code an get rid of the metadata also. |
@drubin and it is not a breaking change at all, since it happens in the background. the user never sees the metadata. |
@drubin @juanpicado I have just looked at the new code, especially the new API and I think I know the reason for keeping the meta data in place as it will speed things up a lot when querying for package information a/o searching for available packages. Nonetheless, the new code just reuses the existing storage.get_package() code and the change should be done quite easily. However, it will induce additional latency since the lookup of the remote meta data will take quite some time, especially with the current behaviour of merging the meta data from multiple sources. |
@silkentrance exactly, otherwise the word proxy wouldn't make sense, also, we modify and update metadata when something new comes up in each library. Furthermore, if you want to scale and you have to deal with multiple processes, each one would have to ask any registries for tarballs (since metadata is updated all the time), when using a proper storage would be faster since, usually, the proxy is in the same network. I think tarballs are mostly the pain of everybody since along the time tends to use a lot of storage, metadata is small and much easier to handle it IMHO. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
My reason:
I can't disable modules caching with
cache: false
option. Installing 3rd party modules through Verdaccio still store this modules folders in storage (but without tarballs).App Version:
Latest version of Docker image
Config file:
The text was updated successfully, but these errors were encountered: