-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add new property CachedUntil to CachedLayoutRendererWrapper #4309
Labels
Comments
Maybe rename it to cacheResetOn? |
I like to keep them similar: "Cached", "CachedSeconds", "CachedDuration". |
Maybe merge |
Duration sounds the same as seconds. I expect with cacheDuration=hour == cacheSeconds=3600 |
CachedUntil ? |
Sounds good! |
304NotModified
changed the title
Add new property CachedDuration to CachedLayoutRendererWrapper
Add new property CachedUntil to CachedLayoutRendererWrapper
Feb 27, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If wanting to refresh the cached-value every 1 minutes. Then one can do this:
${local-ip:cachedSeconds=60}
But if wanting to refresh the cached-value every day (or every hour), then things get more blurry, as it will only work when application startup exactly at midnight.
Instead it should also be possible to do this:
${local-ip:cachedUntil=HourChange}
And it will reset the cached value exactly when the hour-changes. See also: JDetmar/NLog.Extensions.AzureStorage#93
The text was updated successfully, but these errors were encountered: