Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update cache when content changes #2717

Merged
merged 1 commit into from
Mar 29, 2021
Merged

Conversation

tritonas00
Copy link
Collaborator

@tritonas00 tritonas00 commented Mar 25, 2021

Reported from discord

Till now RoR updated the cache when content added/removed.

With this PR it also checks the filetime for every entry and if is different from the last time it was modified it sets validity to CACHE_NEEDS_UPDATE.

Means any change inside content (zip. skinzip ...) will now trigger cache update.

Don't know if this is the right way to do it but it works.

@ohlidalp
Copy link
Member

yes, it is the way, AND it works 👍

@ohlidalp ohlidalp merged commit e0261cb into RigsOfRods:master Mar 29, 2021
@tritonas00 tritonas00 deleted the cache branch March 30, 2021 00:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants