Including from URL & Cache #260
-
Hello! I would like to ask about the expected behavior of using I have used the following directive:
Along with the following config: plugins:
- include-markdown:
cache: 1 # Small so that updates to the remote file are reflected immediately and I have the If I start the server ( When I update the remote file, the rendered page including it does not render the updated file, no matter how long I wait (expecting the cache to be invalidated within 1 second). It only updates when I restart the server. Is this the expected behavior? Am I missing something? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Sorry but I think that I'm missing something. How could |
Beta Was this translation helpful? Give feedback.
The cache avoids you to refetch URLs in every build. You just request once and the content will be stored in a local file during the timeout. These contents are not re-requested to search for changes because that would make the request anyway and the cache exists to avoid that in the first place.