gitlab-composer-repository icon indicating copy to clipboard operation
gitlab-composer-repository copied to clipboard

Stale package information is used from user cache

Open keywan-ghadami-oxid opened this issue 4 years ago • 0 comments

Describe the bug Repository does not return new package version if a new version version was created after the first connection to the repository

To Reproduce Steps to reproduce the behavior:

  • clear cache by deleting the content of the repository servers cache directory (optional step)
  • run composer show -a vendorname/packagename
  • create a new tag in gitlab
  • run composer show -a vendorname/packagename again -> new version is not be shown

Expected behavior the new version should be listed

Additional context the repository should recognize the new version data in the cache/module directory which is successfully updated by the gitlab webhoks. This issue was caused by the new userbased caching, and may be solved by ching the last modification time of other files before using the user cache.

keywan-ghadami-oxid avatar Apr 21 '20 20:04 keywan-ghadami-oxid