-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
[Feature]: Provide a button (or option) to delete non-latest versions of mods from cache #3882
Comments
How about #2536? |
That doesn't quite cover it, because I want an unlimited cache but only keep the latest version of each mod. That would be a good place for another option, like "purge old versions." Ideally this would just happen automatically behind the scenes, but I could see a case where people want to keep a couple different versions of a mod. |
OK, just to give some idea of the considerations here...
Suppose you have multiple game instances, with RP-1 installed in one, and you switch to your stock-alike instance where none of RP-1 is installed and install a new mod. Should the RP-1 downloads be purged at the end of that? I'm going to assume they shouldn't, so we would need to retrieve the list of installed mods from the registries of all game instances. This may take tens of seconds to complete, given the need to chug through loading all registries, so it's probably not something we could add to the end of the install flow. The current overall cache size limit sidesteps this problem by simply deleting the oldest files first when the cache exceeds the user-configured maximum size, FIFO style. Fortunately the compatible game versions for an instance are stored separately and therefore can be loaded much faster than the full registry, so it's also able to prefer keeping mods that are still compatible with any game instance. |
I'm not quite sure what the "hold" label is.
Strong disagree here. I'm often installing and uninstalling mods and virtually always want to be on the latest version of things. Just because I remove something for now doesn't mean I don't want it back again soon, or on a different instance.
Sure, I guess what I mean is "latest version that is compatible with my game instances." If it's too expensive to figure out what versions need to be kept because they're installed on other instances, then so be it. Maybe I just need to set a limit on the cache size, because it does sound like it removes things in the correct order already. |
See #3220. This suggestion would negatively impact one of those use cases, in which there is an advantage to keeping older versions, at least for some time:
|
Yeah I certainly wouldn’t want to make any caching logic more complex either, so feel free to “won’t fix” this one. |
Let's stick with the existing cache size limit for now. |
Problem
I just realized that I have the 1.3 version of parallax textures sitting in my cache, which is pretty hefty. Who knows how many other intermediate versions of things are in there that I'll never install again?
Suggestion
Either a button in the settings window to clear non-latest versions of mods, or just do it automatically when a new version is downloaded.
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: