Closed ElDavoo closed 3 years ago
as described in the readme, this is a static cache, meaning you need to give it a update interval with cache_ttl
, the default is quite long, 1 week or so, not sure, didn't check. so if you don't provide a global config, that's what you'll get. if you set cache_ttl
to 1 (either globally or per shortcode), then it'd update the source every second when someone visits your post.
unless you're trying to use jupyter notebooks, in which case it's a known problem but outside the scope of this project, see #26
fwiw, dynamic caching (what you expect, update source, post will be updated) is already described in #20 and is looking for funding :)
the default is quite long, 1 week or so
Nice ! So I got it wrong: It's not that the flush was not working, is that the default period was being used, as I though removing the cache_ttl would disable the cache completely instead of using the default. My bad!
Wordpress: 5.6 Documents for Git: 2.1.0
When you add the cache_ttl parameter to your markdown block and then you remove it, the plugin will only serve the last cached version of the document and will stop updating the document.
I didn't config anything
To Reproduce Steps to reproduce the behavior:
Expected behavior You should see the updated version