If changes have been made to the repository information, gpk-repo should call a refresh of the cash after closing.
It should do already. If you enable or disable a repo, you get a StateHasChanged method called, which forces Pk to drop caches. Can you describe in detail what you are seeing please? Thanks.
But StateHasChanged only affects the internal cache of packagekitd. For apt we would have to make a Refresh call to the backend. This is not the case for other backends?