Git Product home page Git Product logo

Comments (3)

nilsnolde avatar nilsnolde commented on June 4, 2024

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

from wordpress-markdown-git.

nilsnolde avatar nilsnolde commented on June 4, 2024

fwiw, dynamic caching (what you expect, update source, post will be updated) is already described in #20 and is looking for funding :)

from wordpress-markdown-git.

ElDavoo avatar ElDavoo commented on June 4, 2024

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!

from wordpress-markdown-git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.