-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Update post doesn't seem to refresh cache #117
Comments
Isn't there cache invalidation happening automatically when the .xml file is being touched on disk? |
@madskristensen It doesn't appear so. There is HTTP output caching, but even when that is invalidated, the In practice this also seems to be the case. When I make an edit to a post, it is pretty much never reflected until the app is restarted. |
Miniblog.Core/src/Services/FileBlogService.cs Lines 140 to 144 in 58804ff
I have not seen this behavior in my deployment or on the demo website: https://miniblogcore.azurewebsites.net/ (both using |
I may be missing something but looking at the code on
FileBlogService.SavePost
it does not appear that an update will actually update the_cache
-- if the post is new it is added, but if the post is updated, then as long as the_cache
object is not rebuild (I can't see where that is invalidated other than app restart) then an updated post is never going to be resident in the cache. Am I missing something?The text was updated successfully, but these errors were encountered: