Skip to content
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

Fix DateTime comparison in PSAdapter cache code #533

Merged
merged 13 commits into from
Sep 4, 2024

Conversation

anmenaga
Copy link
Contributor

@anmenaga anmenaga commented Aug 28, 2024

PR Summary

Previous code was using fractional seconds that resulted in unnecessary cache rebuilds.
This also adds tests that verify that there are no unnecessary cache rebuilds for both PSAdapter and WinPSAdapter.

@anmenaga anmenaga marked this pull request as draft August 28, 2024 22:25
@anmenaga anmenaga marked this pull request as ready for review August 28, 2024 22:53
@anmenaga anmenaga requested review from SteveL-MSFT and tgauth August 28, 2024 22:53
Copy link
Member

@SteveL-MSFT SteveL-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't quite understand. Even if using fractional seconds, there would have to be a change for the LastWriteTime to differ, right?

@SteveL-MSFT SteveL-MSFT added this pull request to the merge queue Sep 4, 2024
Merged via the queue into PowerShell:main with commit f047b42 Sep 4, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants