Closed denelon closed 2 months ago
Just one thought I had . . . It would probably be best if the TTL could be changed dynamically outside of the CLI. Either through a new entry in the metadata
table in the index, or an HTTP header, or even just an API endpoint
The new v2 schema has been deployed, and we've tested with several clients. This will be the default in the preview builds of WinGet 1.9.
This feature has been completed and is in the latest WinGet 1.8 stable version as well as WinGet 1.9-preview.
Description of the new feature / enhancement
As the number of packages in the community repository increases, additional optimizations can be made to the structure of the index to reduce the data transfer needed to support local operations.
The default TTL for the community repository is 5 minutes. On average, the index is updated about every 17 minutes. Given this data, the default TTL should also be reduced to half that time.
Proposed technical implementation details
Newer versions of the client should be able to take advantage of the new schema with the smaller index. Earlier versions of WinGet will continue to use the existing schema and index. The publishing service should continue to publish both formats of the index. In the event this results in an extended publishing pipeline time, the index should be extended to match half the average publish pipeline time.